Re: [PHP] PHP, mbstring, UTF-8 and indexing strings

2007-06-24 Thread delsvr
This works great. Thanks. Jochem Maas wrote: > > delsvr wrote: >> Just a simple question (with a simple answer, hopefully): how can I >> access >> character x of a utf-8 encoded string? i.e. how would I get this to work: >> >> for($x=0; $x < strlen($utf8); $x++) >> echo "character {$x}:" . $

Re: [PHP] PHP, mbstring, UTF-8 and indexing strings

2007-06-24 Thread Jochem Maas
delsvr wrote: > Just a simple question (with a simple answer, hopefully): how can I access > character x of a utf-8 encoded string? i.e. how would I get this to work: > > for($x=0; $x < strlen($utf8); $x++) > echo "character {$x}:" . $utf8{$x}; > > Keep in mind that I have strlen overloaded by