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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]