Date: 07/10/01
- Next message: alfareees alfareees: "[PHP] Line by Line , Word by Word"
- Previous message: Maxim Maletsky: "RE: [PHP] weird behaviour with ("Z" <= "Z")"
- In reply to: Rehuel Lobato de Mesquita: "[PHP] ? : where in the manual?"
- Next in thread: Maxim Maletsky: "RE: [PHP] ? : where in the manual?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: alfareees alfareees: "[PHP] Line by Line , Word by Word"
- Previous message: Maxim Maletsky: "RE: [PHP] weird behaviour with ("Z" <= "Z")"
- In reply to: Rehuel Lobato de Mesquita: "[PHP] ? : where in the manual?"
- Next in thread: Maxim Maletsky: "RE: [PHP] ? : where in the manual?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

