mardi 13 janvier 2015

How does this if works? (php)


$a= rand(0,1);
$b=0;
if($a){
$b++;
echo "works";
}


What does the condition ($a) mean ? I suppose, it runs the code when $a equal to 1, which mean True. Am i right ?


Aucun commentaire:

Enregistrer un commentaire