Re: Why can constants only be scalars?
| From: | Sean Coates | Date: | Thu, 13 May 2004 15:29:21 +0000 |
| Subject: | Re: Why can constants only be scalars? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-9840@lists.php.net to get a copy of this message | ||
Ilya Sher wrote:
We discussed this issue with Jevon Wright (private emails) and in the end of the day agreed that most simple yet powerful solution is "superglobals", which would work like $_GET,$_POST etc.This can be accomplished in user-space, by cheating the existing $_* superglobals (if you must -- cowiki does this, IIRC): <?php $_SERVER['foo'] = array('bar', 'baz'); function oink() { print_r($_SERVER['foo']); } oink(); ?> S