note 38145 deleted from function.substr by aidan
| From: | aidan@php.net | Date: | Sun, 22 Aug 2004 11:19:34 +0000 |
| Subject: | note 38145 deleted from function.substr by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-75098@lists.php.net to get a copy of this message | ||
Note Submitter: dr at jones dot dk
----
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.