Wednesday, January 12, 2011

Exploring the comparator operator in PHP

 So2,for this crazy mornink, we'll study the Comparison Operator!.So open up ur textpad, and copy this code:

<?PHP

$name_one = 'greyson';
$name_two = 'greySon';


if ($name_two != $name_one
{
 

print("This is different person! it never be the same!");
 /*
for ur information too,although we look this variable is same but the computer is more sensitive than us ,it look at both variable as different because the greySon in $name_two is has capital S while $name_one doesn't have any capital word.*/  
}

?>


N/NOTE: unfortunately,i just show for unequal operand only...what..i'm lazy?hey c'maaan i'm not lazy as llama(Llama) lor ...i just give u chances to explore the other operands.Just read the statement below for my reason of my action!hehe
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>


>
"You’ll never enjoy your life,
          living inside the box 

             You’re so afraid of taking chances,
                 how you gonna reach the top?
"

   -Greyson Chance - Waiting Outside The Lines Lyrics :-

No comments:

Post a Comment