note 102712 added to function.define

From: Date: Tue, 01 Mar 2011 21:24:13 +0000
Subject: note 102712 added to function.define
Groups: php.notes 
Request: Send a blank email to php-notes+get-177466@lists.php.net to get a copy of this message
This is obvious, but easy to forget: if you include a file, the include file can only make use of constants already defined. For example: define("VEG","cabbage"); require("another file"); define("FRUIT","apple"); // "another file": echo VEG; // cabbage echo FRUIT; // FRUIT ---- Server IP: 87.124.126.105 Probable Submitter: 195.137.106.159 (proxied: 195.137.106.159) ---- Manual Page -- http://www.php.net/manual/en/function.define.php Edit -- https://master.php.net/note/edit/102712 Del: integrated -- https://master.php.net/note/delete/102712/integrated Del: useless -- https://master.php.net/note/delete/102712/useless Del: bad code -- https://master.php.net/note/delete/102712/bad+code Del: spam -- https://master.php.net/note/delete/102712/spam Del: non-english -- https://master.php.net/note/delete/102712/non-english Del: in docs -- https://master.php.net/note/delete/102712/in+docs Del: other reasons-- https://master.php.net/note/delete/102712 Reject -- https://master.php.net/note/reject/102712 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#177466) next »