|
Posted by jodleren on 11/28/07 09:24
Hi!
In while (false !== ($file = readdir($handle)))
what happens?
The $file gets assigned, and the value of that is compared with false?
The assignment is being compared with false
Say, I want to return true or an error code. Can I do;
if($err = somefunc())
echo "ok"
else
echo "error: $err";
WBR
Sonnich
Navigation:
[Reply to this message]
|