define() an array?
| From: | lists at dwsasia dot com | Date: | Fri, 20 Apr 2007 09:46:07 +0000 |
| Subject: | define() an array? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-253323@lists.php.net to get a copy of this message | ||
Hi,
I thought I could define() and array. However, when I do this:
define("THECONSTANT", array(1,2,3));
print_r(THECONSTANT);
it prints THECONSTANT and not the array :(
according to the manual:
bool define ( string $name, mixed $value [, bool $case_insensitive] )
And isn't "mixed" of any type?
/Peter