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:[EMAIL PROTECTED]] 
Sent: Tuesday, July 10, 2001 12:16 PM
To: [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: [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]

Reply via email to