note 102712 added to function.define

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.