note 52041 added to function.create-function

From: Date: Tue, 19 Apr 2005 19:38:08 +0000
Subject: note 52041 added to function.create-function
Groups: php.notes 
Request: Send a blank email to php-notes+get-88226@lists.php.net to get a copy of this message
To clarify this comment below, "Basically, if create_function() is the answer, you arn't asking the right question": Using eval() and create_function() is like pushing the queen early. Chessmasters can do it because they know what they're doing. Beginners and intermediates, however, are quick to attack without recognizing the long term danger. So too, programmers who have *actually completed a curriculum in computer science* and are aware of their algorithmic options and computational complexities, can find incredible possibilities for eval() and create_function() and should find no fear in calling those functions. However, if you're a novice or intermediate, it may be wise to put aside your pride and seek advice from a computer scientist on a simpler algorithm to your solve problem. You wouldn't want a nurse to perform the work of a surgeon on you. ---- Manual Page -- http://www.php.net/manual/en/function.create-function.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+52041 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52041&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52041&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52041&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52041&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52041&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+52041&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#88226) next »