note 9511 added to Control Structures

From: Date: Wed, 08 Nov 2000 09:14:35 +0000
Subject: note 9511 added to Control Structures
Groups: php.notes 
Request: Send a blank email to php-notes+get-7494@lists.php.net to get a copy of this message
function lex1() { print "Hello"; return 1; } function lex2() { print "World"; return 1; } if (lex1() || lex2()) {} it only print "Hello", so lex2() never been executed. So, u can also write : if ( @function1() && @function2() && @function3() && @function4() && @function5()) {} It will do all functions from 1 to 5 but terminated immediately if one of the function is failed. LexZEUS http://www.php.net/manual/control-structures.php

« previous php.notes (#7494) next »