11-18-2009, 07:22 AM
|
#1 (permalink)
|
|
The Visitor
Join Date: Nov 2009
Posts: 2
Thanks: 0
|
Comparison Operators - super easy
Hello Everyone,
I have just started learning php as my first programming language yesterday. I am following a tutorial at devzone.zend.com and just covered basic comparisons.
When I enter this code
Code:
<?php
$one = 1;
$two = 2;
$less = ($one < $two);
echo $less;
?>
I get the result of "1" instead of "true", and for "false" it doesn't show anything; just a blank.
My question: is this normal? Every tutorial I've looked at and even the php5 manual says it should result as a Boolean value.
Am I doing something wrong?
I am running xampp on windows vista x86. My other code on the page (simple addition) works fine.
Thank you in advance for your help.
|
|
|
|