Re: Array key portability
| From: | Luis Morales | Date: | Tue, 21 Feb 2006 13:55:42 +0000 |
| Subject: | Re: Array key portability | ||
| References: | 1 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-944@lists.php.net to get a copy of this message | ||
hi,
I'm not 100% sure... but if you use pear DB library you can add support
for your case.
Take a look on pear.php.net and find by DB.
Regards,
Luis Morales
On Tue, 2006-02-21 at 08:09 -0500, l0t3k wrote:
> Hey all,
> in internal PHP code we use add_assoc_xxx to populate associate arrays, and
> all keys (i assume) are ASCII. If we want to support portable code, what
> needs to be done to allow
>
> $val = $arr['some literal'];
>
> to function the same irrespective of unicode_semantics ?
> For BC purposes, we couldnt use all unicode keys internally, but this would
> mean the end user would have to do just that to ensure code works fine in
> all cases.
> In any case we need add_assoc_xxx functions with the capability of
> specifying unicode keys...
>
> l0t3k
>
--
---------------------------------------------------------------------------------
Luis Morales
Consultor de Tecnologia
Cel: +(58)416-4242091
---------------------------------------------------------------------------------
"Empieza por hacer lo necesario, luego lo que es posible... y de pronto
estarás haciendo lo imposible"
---------------------------------------------------------------------------------