Re: [SMARTY-DEV] html_options

From: Date: Mon, 26 Feb 2007 14:03:21 +0000
Subject: Re: [SMARTY-DEV] html_options
References: 1 2 3 4 5 6  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2975@lists.php.net to get a copy of this message
php -r '$a = array(true => "foo"); reset($a); var_dump(key($a));' if booleans where supported as array-keys this would give "bool(true)" but it gives "int(1)".
php -r '$a = array(true => "foo"); reset($a); var_dump(key($a)); var_dump($a[true]);' It doesnt matter how php internally handles this. It doesnt say anywhere that using booleans as array keys (here it still doenst matter how it is treated internally) is deprecated or unsupported (quite the opposite with the manual quote i supplied).

« previous php.smarty.dev (#2975) next »