Is that while porting a script to PHP 4.1.0, where I used to check:

if (session_is_registered('del_power') && $del_power == 1) {
    // del stuff
}

  Because $del_power could be registered as 1 or 0, now I can do:

if ($_SESSION['del_power'] == 1) {
    // del stuff
}

  Nice. Less typing and easier to read.

--

Julio Nobrega.

Um dia eu chego lá:
http://sourceforge.net/projects/toca

Ajudei? Salvei? Que tal um presentinho?
http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884





-- 
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