note 107878 deleted from function.mb-substr by danbrown

From: Date: Thu, 10 May 2012 18:13:42 +0000
Subject: note 107878 deleted from function.mb-substr by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-187737@lists.php.net to get a copy of this message
Note Submitter: santiago-php at zarate dot net dot ve ---- @qeremy Actually you could just add the encoding you desire, and it would work perfectly (i.e: Give the same results as your approach) <?php $str = "Büyük"; print mb_substr($str, 0, 3); //Bü print mb_substr($str, 0, 3, 'UTF-8'); //Büy print substr_unicode($str, 3); //Büy ?>

« previous php.notes (#187737) next »