Groups    |     Jobs    |      User Space 

Hello, pls   log in or   register
current location:   up9rade > groups > PHP
tricky PHP

20080706 21:54:05   from: freedo



$gender = "woman";

if ($gender != 0 && $gender != 1)
echo "error";
else echo "pass";

what's the result of output?

On one hand PHP has loose restriction of variable types, on another hand, it does not allow multi-inheritance, but still it's an interesting web pl.






------------------------------------------------------------------------------------------------------------


20080711 23:31:06:   freedo    quote    
$str = array ("a","b");

echo $str[5]; <- what's the output?


I want to say something...

Input autho code, click on image to change another code: