note 50175 added to language.variables

From: Date: Sun, 20 Feb 2005 20:26:34 +0000
Subject: note 50175 added to language.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-85290@lists.php.net to get a copy of this message
I don't mean to flame, but I have become convinced that PHP is one of those languages that promotes bad programming practice. Or is it that most website designers never learned good practice? Concatenating two string to form a variable name? Indirect namespace lookups like this should not be needed. Most languages do not allow you do do this because whenever this might be a solution there is _always_ a better one. Please people, keep your code maintainable and do not do this! Only as a last resort or a quick and temporary fix should you resort to such things. It's always alright to experiment, but in reality this is not useful and will make you shoot yourself (and others) in the foot. ---- Manual Page -- http://www.php.net/manual/en/language.variables.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50175 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50175&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50175&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50175&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50175&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50175&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50175&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#85290) next »