note 26625 added to function.substr-count

From: Date: Thu, 07 Nov 2002 05:03:16 +0000
Subject: note 26625 added to function.substr-count
Groups: php.notes 
Request: Send a blank email to php-notes+get-39083@lists.php.net to get a copy of this message
In other language, got a problem. See that example. ------------------------------------- Example: $a = "Á¢¼ö" $b = "¢¼"; echo substr_count($a,$b); ------------------------------------- Result: 1 ------------------------------------- Why? Convert hex code, $a => c1a2bcf6 = "Á¢¼ö" $b => a2bc = "¢¼"; ..... How can I solve this ploblem? -- http://www.php.net/manual/en/function.substr-count.php http://master.php.net/manage/user-notes.php?action=edit+26625 http://master.php.net/manage/user-notes.php?action=delete+26625 http://master.php.net/manage/user-notes.php?action=reject+26625

« previous php.notes (#39083) next »