note 38145 modified in function.substr by vrana
| From: | vrana@php.net | Date: | Wed, 10 Dec 2003 20:37:54 +0000 |
| Subject: | note 38145 modified in function.substr by vrana | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-61772@lists.php.net to get a copy of this message | ||
Beware, that substr() works on the raw string, so the following does not work:
substr(utf8_encode('café'), 0, 4);
At least this is the case with PHP 4.2.3 currently in Debian testing.
Editor's note: You can use mb_substr() for this.
--was--
Beware, that subst() works on the raw string, so the following does not work:
substr(utf8_encode('café'), 0, 4);
At least this is the case with PHP 4.2.3 currently in Debian testing.
http://www.php.net/manual/en/function.substr.php