note 38009 added to ref.mbstring

From: Date: Thu, 04 Dec 2003 12:47:34 +0000
Subject: note 38009 added to ref.mbstring
Groups: php.notes 
Request: Send a blank email to php-notes+get-61401@lists.php.net to get a copy of this message
Overloading PHP string functions. Sometimes, with overloaded functions, you need a way to use the non-overloaded forms (in order to work on string bytes, not characters). I have not found a way to do this, but there is a workaround. You can use the mb_str* functions with "iso-8859-1" character set and it will essentially emulate the non-overloaded functions. I needed the byte length of a multibyte string (for a Content-Length HTTP Header) and so I do this: $length = mb_strlen( $str, "iso-8859-1" ); ---- Manual Page -- http://www.php.net/manual/en/ref.mbstring.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38009 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38009&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38009&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#61401) next »