| Posted by Maverick FC on 03/23/07 02:32 
On Fri, 23 Mar 2007 01:57:27 GMT, "Maverick FC"<freeculture@NOSPAMlibero.it> wrote:
 
 > What should output this piece of code?
 > I think it's not normal what's outputting to me...
 
 Here it is what I'm trying to say:
 
 function foo() { return 'Hello World!'; }
 
 echo '<pre>';
 if ( $str = foo() ) var_dump($str);
 if ( $str = foo() || $str = foo() ) var_dump($str);
 echo '</pre>';
 
 Is that normal?
 
 Thanks.
 Maverick
 
 --
 «Che non siete più liberi di non avere una casa con letto per dormire.
 Lavorate voi - schiavi dei soldi - che non sentite la puzza della
 schiavitù!» (a Mario di Monte Mario, Roma) # http://libre.netsons.org/
  Navigation: [Reply to this message] |