Re: ? : where in the manual?

From: Date: Tue, 10 Jul 2001 16:35:49 +0000
Subject: Re: ? : where in the manual?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-57203@lists.php.net to get a copy of this message
These are called (well, one name for it), is ternary operator. It's not PHP specific and a search on google will find some results. Regarding PHP, brief discussion (with examples) can be found at the following locations : http://www.php.net/manual/language.expressions.php http://www.php.net/manual/language.operators.comparison.php I don't think it's recommended to use it for multiple lines, looks kinda screwy. Although, each to their own. Regards, Philip On Tue, 10 Jul 2001, Rehuel Lobato de Mesquita wrote: > Heya guys, > > I am trying to find information in the manual to explain these lines: > > $goto = empty($SESSION["wantsurl"]) ? $CFG->wwwroot : > $SESSION["wantsurl"]; > header("Location: $goto"); > die; > > Can anyone tell me where to look??? > > Thanx > > > > -- > 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 (#57203) next »