|
||||||||||||
PHP supports UTF-8 characters in function names!
Apr. 8th, 2009 13:14 by sdeluca — Permalink | TrackBack: http://stephanedeluca.com/trackback/864 | While reworking a function that basically dumps the PHP stack when a crash occures, I came accros an interesting things I silently complain about for the past few years: why the hell I cannot write a function name with accents in there? Well, the dream comes true in PHP 5.x, here you are, see the function Mélody_είναι_συμπαθητική () which mixes both french accents and greek caharacters -- says: Mélody is friendly.
Which outputs the following:
I also tested right-to-left characters such as arabic and it works!
I'm really happy about this. CommentsBe the first to leave a comment. |
||||||||||||
Copyright © 1994 ˜ 2010 dsei.biz / Stéphane de Luca — All Rights Reserved
| 01:34 PM
| RSS Feed
| Best viewed with Safari
|
||||||||||||
|
|
||||||||||||