note 86923 deleted from function.mb-substr by danbrown
| From: | danbrown@php.net | Date: | Fri, 06 Feb 2009 16:21:19 +0000 |
| Subject: | note 86923 deleted from function.mb-substr by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-150313@lists.php.net to get a copy of this message | ||
Note Submitter: zachary dot craig at gmail dot com
----
@Silvan
Make sure to use encoding with strlen as well. Use:
<?php
mb_substr($str,$start,mb_strlen($str, $encoding),$encoding);
?>