# Can I use strings with some unicode characters as array keys?

- Thread: https://externals.io/message/54258
- Original archive: https://news-web.php.net/php.internals/54258
- Started by Andre on 2011-07-31T02:18:54+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #54258 — Andre — 2011-07-31T02:18:54+00:00

URL: https://externals.io/message/54258#54258

Question to someone who's familiar with how arrays are implemented in PHP.
I've tried asking this on stackoverflow.com, but it looks like I need
to ask this one
to people familiar with PHP source.
PHP manual says that one should only use strings or integers as array keys.
Also  I know that PHP doesn't speak unicode yet.
So - I was just wondering - when unicode characteres are used in
array key - does PHP strips them or affects them in any way?
or does iPHP simply treats keys as binary string, the end of the story?

Thank you!
