note 76291 added to function.define

From: Date: Mon, 09 Jul 2007 17:34:49 +0000
Subject: note 76291 added to function.define
Groups: php.notes 
Request: Send a blank email to php-notes+get-128332@lists.php.net to get a copy of this message
Watch out. You can define a new constant with the name NULL with define("NULL","FOO");. But you must use the function constant("NULL"); to get it's value. NULL without the function call to the constant() function will still retrieve the special type NULL value. Within a class there is no problem, as const NULL="Foo"; will be accessible as myClass::NULL. ---- Server IP: 194.109.193.76 Probable Submitter: 82.92.18.135 ---- Manual Page -- http://www.php.net/manual/en/function.define.php Edit -- https://master.php.net/note/edit/76291 Del: integrated -- https://master.php.net/note/delete/76291/integrated Del: useless -- https://master.php.net/note/delete/76291/useless Del: bad code -- https://master.php.net/note/delete/76291/bad+code Del: spam -- https://master.php.net/note/delete/76291/spam Del: non-english -- https://master.php.net/note/delete/76291/non-english Del: in docs -- https://master.php.net/note/delete/76291/in+docs Del: other reasons-- https://master.php.net/note/delete/76291 Reject -- https://master.php.net/note/reject/76291 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#128332) next »