note 84550 added to function.define
| From: | bakkelun at gmail dot com | Date: | Fri, 18 Jul 2008 13:51:59 +0000 |
| Subject: | note 84550 added to function.define | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-141658@lists.php.net to get a copy of this message | ||
To ceo @ l-i-e dot com:
quote:
You can then do:
class foo {
$private now = APPLICATION_NOW;
}
You can drop the global constant all together and just use:
class foo {
$private now = time();
}
sincerely,
www.dosspirit.net
----
Server IP: 62.73.196.231
Probable Submitter: 81.0.130.14
----
Manual Page -- http://www.php.net/manual/en/function.define.php
Edit -- https://master.php.net/note/edit/84550
Del: integrated -- https://master.php.net/note/delete/84550/integrated
Del: useless -- https://master.php.net/note/delete/84550/useless
Del: bad code -- https://master.php.net/note/delete/84550/bad+code
Del: spam -- https://master.php.net/note/delete/84550/spam
Del: non-english -- https://master.php.net/note/delete/84550/non-english
Del: in docs -- https://master.php.net/note/delete/84550/in+docs
Del: other reasons-- https://master.php.net/note/delete/84550
Reject -- https://master.php.net/note/reject/84550
Search -- https://master.php.net/manage/user-notes.php