note 90530 added to function.define

From: Date: Mon, 27 Apr 2009 05:47:34 +0000
Subject: note 90530 added to function.define
Groups: php.notes 
Request: Send a blank email to php-notes+get-153799@lists.php.net to get a copy of this message
To : usuroer dot king at hotmail dot co dot uk (About the This-is-a-test thing) We can create constants with hyphen but we have to use the constant function to access them : <?php define("THIS-IS-A-TEST","working"); if(defined("THIS-IS-A-TEST")) { echo "I'm defined and I'm ".constant("THIS-IS-A-TEST"); //echoes I'm defined and I'm working //tested in php 4 (free.fr) // http://nirahiel.free.fr/php << your free php tester ;) } ?> ---- Server IP: 213.246.51.26 Probable Submitter: 87.91.3.198 ---- Manual Page -- http://www.php.net/manual/en/function.define.php Edit -- https://master.php.net/note/edit/90530 Del: integrated -- https://master.php.net/note/delete/90530/integrated Del: useless -- https://master.php.net/note/delete/90530/useless Del: bad code -- https://master.php.net/note/delete/90530/bad+code Del: spam -- https://master.php.net/note/delete/90530/spam Del: non-english -- https://master.php.net/note/delete/90530/non-english Del: in docs -- https://master.php.net/note/delete/90530/in+docs Del: other reasons-- https://master.php.net/note/delete/90530 Reject -- https://master.php.net/note/reject/90530 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#153799) next »