Re: [PHP] ? : where in the manual? From: Philip Olson (philip <email protected>)
Date: 07/10/01

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 <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>