RE: [PHP] How to escape from a function?

From: Date: Wed, 17 Jan 2001 02:22:25 +0000
Subject: RE: [PHP] How to escape from a function?
Groups: php.general 
Request: Send a blank email to php-general+get-34956@lists.php.net to get a copy of this message
function foo() { bla bla bla... echo 'whatever...'; // that should output it whenever the function is called... // need an if? then... just put an if in here ... return $any bla bla; } or means || so if($name=='Max' or $name=='Maxim') is equal to if($name=='Max' || $name=='Maxim') this is quite useful for usability purposes... Cheers, Maxim Maletsky -----Original Message----- From: Zenith [mailto:zenith@linuxmail.org] Sent: Wednesday, January 17, 2001 7:16 AM To: php-general@lists.php.net Subject: [PHP] How to escape from a function? ... may be I have use a wrong subject, but I can't think a more suitable one sorry first! say, I have a function like this function foo() { babababa... /*at this point, I want to output a lot of html, can I use a ':' to escape from there?*/ /*I know I can do this is a if construct or for... construct, but I can't do this at this point*/ /*is there any way for me to do the similar thing?*/ } And I have one more question, what is the meaning of 'or'? e.g. $db=mysql_connect("localhost","root","password") or die ("could not connect"); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#34956) next »