View Single Post
Old 02-06-2008, 03:58 PM   #1 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default 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
Orc is offline  
Reply With Quote