File/ext/utf8/str_ireplace.php

Description
Functions
utf8_ireplace (line 24)

UTF-8 aware alternative to str_ireplace

Case-insensitive version of str_replace Note: requires utf8_strtolower Note: it's not fast and gets slower if $search / $replace is array Notes: it's based on the assumption that the lower and uppercase versions of a UTF-8 character will have the same length in bytes which is currently true given the hash table to strtolower

string utf8_ireplace (string $search,  $replace,  $str, [ $count = NULL])
  • string $search
  • $replace
  • $str
  • $count

Documentation generated on Thu, 08 Jan 2009 17:48:36 +0100 by phpDocumentor 1.4.0a2