note 39198 added to function.-

From: Date: Tue, 20 Jan 2004 15:03:59 +0000
Subject: note 39198 added to function.-
Groups: php.notes 
Request: Send a blank email to php-notes+get-63879@lists.php.net to get a copy of this message
Wow. What a horrible thing to do -- I suddenly find that my system for calling dynamic pages is completely screwed because of this new function that appeared this weekend. Basically, there were sections and pages in the system. To derive a function, first you require the proper $_REQUEST or $_SESSION variable ["section"] to have the function defined, and then call the function using $section_$action() Obviously, with no section it would require the default (which is, by the way, global) and call function _() since you can't call () itself. NOW, however, I've got to pointlessly change all of this. Wrong choice of function names, when you have this dynamic function capability in PHP. ---- Manual Page -- http://www.php.net/manual/en/function.-.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39198 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39198&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39198&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#63879) next »