Re: [PHP-I18N] Array key portability
[email protected] (Luis Morales)
| Newsgroups | php.i18n |
|---|---|
| Organization | Venezuelasite |
| Message-ID | <[email protected]> |
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" ---------------------------------------------------------------------------------