note 37625 deleted from language.oop.magic-functions by danbrown

From: Date: Sat, 07 Nov 2009 18:55:04 +0000
Subject: note 37625 deleted from language.oop.magic-functions by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-162509@lists.php.net to get a copy of this message
Note Submitter: jacobmather at dwsc dot net ---- Something interesting to point out... the magic __wakeup() function has access to global variables... such as... $_POST! How interesing... I think i'm going to use this to enhance template handeling. Interesting to think of though. Just make your template object referance the information it needs from inside the __wakeup routine, and make it display the initial page when the constructor is run... store it in a session variable. Sorry I don't have any code examples at the time... but it's just another odd option you have, like variable variable functions ... (i.e. $c = 'count'; $NumOfEntries = $c($array);)

« previous php.notes (#162509) next »