M
Marikoula
Guest
Hi, can you please explain this to me. Iam learning php and I'm really confused as to why all the numbers and counting?
Here is what the tutorial says:
__________________________________________________________
Some more examples
$test variable = 1 + 1; // Assigns a value of 2.
$testvariable = 1 – 1; // Assigns a value of 0.
$testvariable = 2 * 2; // Assigns a value of 4.
$testvariable = 2 / 2; // Assigns a value of 1.
Okay to make things easier I will show you an example here we will create a variables $a, $b and multiply them and store the value in $c, just see it's so simple.
<?php
$a = 5; //we created a variable a and assigned it a value of 5
$b = 2; //we created a variable b and assigned it a value of 2
$c = $a * $b; //we multiplied the Variable a and b then stored the value in c
echo $c; //we print the content of variable c which is 10
WHAT does this mean, can you explain it easy for me to understand, please?
Thanks so much, I appreciate all Your help
Here is what the tutorial says:
__________________________________________________________
Some more examples
$test variable = 1 + 1; // Assigns a value of 2.
$testvariable = 1 – 1; // Assigns a value of 0.
$testvariable = 2 * 2; // Assigns a value of 4.
$testvariable = 2 / 2; // Assigns a value of 1.
Okay to make things easier I will show you an example here we will create a variables $a, $b and multiply them and store the value in $c, just see it's so simple.
<?php
$a = 5; //we created a variable a and assigned it a value of 5
$b = 2; //we created a variable b and assigned it a value of 2
$c = $a * $b; //we multiplied the Variable a and b then stored the value in c
echo $c; //we print the content of variable c which is 10
WHAT does this mean, can you explain it easy for me to understand, please?
Thanks so much, I appreciate all Your help
