note 38145 added to function.substr
| From: | dr at jones dot dk | Date: | Tue, 09 Dec 2003 22:16:56 +0000 |
| Subject: | note 38145 added to function.substr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-61712@lists.php.net to get a copy of this message | ||
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.
----
Manual Page -- http://www.php.net/manual/en/function.substr.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38145
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38145&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38145&report=yes
Search -- http://master.php.net/manage/user-notes.php