02-06-2008, 02:58 PM
|
#1 (permalink)
|
|
The Prestige
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
|
return boolean in function scope
What does it mean for a functions scope to have a boolean false, when returning the boolean.
Example:
PHP Code:
function foo(args ..)
{
return true;
if ($bar)
{
echo $bar;
}
return false;
}
I look at scripts like this, and it just confuses me as to why would a php programmer put something as return true and false in there? It's only making the file larger. :P
__________________
VillageIdiot can have my babbies ;d
|
|
|
|