RE: [PHP] ? : where in the manual? From: Jack Dempsey (dabigdemp <email protected>)
Date: 07/10/01

www.php.net/empty
www.php.net/header
the x ? Y : z; form is a quick n easy structure that works like if/else
do a search for classes and objects for the $CFG->wwwroot part

jack

-----Original Message-----
From: Rehuel Lobato de Mesquita [mailto:rehuel <email protected>]
Sent: Tuesday, July 10, 2001 12:16 PM
To: php-general <email protected>
Subject: [PHP] ? : where in the manual?

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>