Monday, 2 April 2018

php 2- lecture( peachy PHP bot framework)

peachy PHP bot framework(Dallas Website Development)

those are more detail just a quick a radio you variable names
must start with a dollar same followed by the variable name and a very will
name start with the letter or underscores has signed a value to the very
well using the equal operator and we end this state have to semi columns(Dallas Website Development)variable names and the party sensitive all right let's do some coding here
open not with tags I'm going to, first of all, define a constant named the or
and place the value of it as an h a multi because I'm going to be using the
threat of so [NOISE] and then I'm going to find some variables all these
variables or going to you have a string value which going to put council
names of my he is ~~~~~~~ so all of these three variables are different
variables because memorable needs and be a sense that and this is an example
so you get can clearly see that they're in fact different so [COUGH] this is
the output and as you can see all stories second intend their output in
different valleys because those are different variables which hold all these
different valley so that's how that works and now let me just give you an
example of a function inside the very inside the variable well you they can
do something like this sense quite is the square they of a number and use
the function of the value and then i would output for because that's
disk wired up for we can also use something called a tiny expression ~~~~~~~
and if you don't know how that works and here's a quick overview so first we
have a conditional expression here on the left side he'd followed by the
question mark if that condition in valleys to true then expression to is
going to be our value otherwise [UM] in theory is going to be the value which is
falls and those two are separate by the column so we can say something like
sorry and then let's say sign the result to the variable called ever going to
save equals and then we're going to around that through that seminary logic
expression ~~~~~~~ i should thing and then they coal and in case expression
is false and i told you know as and then output the evolve and how will be
equal to your over twenty-one use you're drinking because ages greater and
twenty-one so that's that way to assign the value using a term or the
expression now let me show you get something called variable variables so
the variable is something when we use a variable name in place after
variable has the name was hit a signed when we create the variable so for
example for example our variable named they valley of segued and so this
will be the same thing as a writing he calls whatever value is there because

 

when we right to dollar science the to value of the name is place inside of
this inside so this variable and so this would be the same pain is writing
set called sitting be console so now we have a new variable called sex
~~~~~~~ and we can go had an hour protect and ~~~~~~~ and used to be our tax
here and it's a six seen but console and now that we can see we have a sense
and variable so that's how that works also one if we have an area down named
planets with a bunch of different planets we can also use variable variable
so if we replace planets and specify the key like to hear this would be the
same thing as writing I'm actually signing valley too and mars was the roman
got to work so this will be the same as many mars equal from my got a tell
the war because we're specifying an area in place of the variable name and then
we they used the key and dick still which is equal to mars so that would be
mars dollars .
DevDigs (Dallas Website Development)

 
-

No comments:

Post a Comment