I have finally made the commitment to learn PHP. I am really excited and know the question I am going to ask is an extreme newb question.
I was asked to assign values to 2 variables (quiz). Then use a comparison operator to test whether the first value is 1. the same as second 2. less than the second.. etc...
I understand the comparison operators but I am not sure how to output the result... Isn't it nice the book discusses the comparison operators and their results but does not demonstrate how to output the result... then asks me to do it in the quiz...
Here is what I have (please don't laugh) :- )
<?php
$pie = 3.14;
$my_age = 32;
echo $pie == $my_age;
?>
Nothing displays in the browser as I know my syntax is wrong where I wrote echo...
I am guessing you can't output the result unless this comparison is part of an if statement or some other statement or function...
Thanks,
Scott