note 101796 added to language.constants

From: Date: Tue, 11 Jan 2011 20:08:55 +0000
Subject: note 101796 added to language.constants
Groups: php.notes 
Request: Send a blank email to php-notes+get-175648@lists.php.net to get a copy of this message
A nice way to set and verify a constant is not already set: defined('CONSTANT') or define('CONSTANT', 'value'); If the constant is defined the expression resolves to false, if the constant isn't set it will be defined. ---- Server IP: 69.147.83.197 Probable Submitter: 83.163.192.55 ---- Manual Page -- http://www.php.net/manual/en/language.constants.php Edit -- https://master.php.net/note/edit/101796 Del: integrated -- https://master.php.net/note/delete/101796/integrated Del: useless -- https://master.php.net/note/delete/101796/useless Del: bad code -- https://master.php.net/note/delete/101796/bad+code Del: spam -- https://master.php.net/note/delete/101796/spam Del: non-english -- https://master.php.net/note/delete/101796/non-english Del: in docs -- https://master.php.net/note/delete/101796/in+docs Del: other reasons-- https://master.php.net/note/delete/101796 Reject -- https://master.php.net/note/reject/101796 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#175648) next »