note 63550 added to function.defined

From: Date: Thu, 23 Mar 2006 13:27:55 +0000
Subject: note 63550 added to function.defined
Groups: php.notes 
Request: Send a blank email to php-notes+get-106471@lists.php.net to get a copy of this message
// Autor: Jens Neumann // Use: to handle constants // Heres a simple constant available check: // Constant check function get($constant) { if(defined($constant)) return constant($constant); else return false; return $constant; } // example define ("_CONSTANT", "string"); print_r (get("_CONSTANT")); ---- Server IP: 217.13.201.10 Probable Submitter: 213.254.50.40 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.defined.php Edit -- http://master.php.net/note/edit/63550 Del: integrated -- http://master.php.net/note/delete/63550/integrated Del: useless -- http://master.php.net/note/delete/63550/useless Del: bad code -- http://master.php.net/note/delete/63550/bad+code Del: spam -- http://master.php.net/note/delete/63550/spam Del: non-english -- http://master.php.net/note/delete/63550/non-english Del: in docs -- http://master.php.net/note/delete/63550/in+docs Del: other reasons-- http://master.php.net/note/delete/63550 Reject -- http://master.php.net/note/reject/63550 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#106471) next »