API15:JString/str ireplace
From Joomla! Documentation
Contents |
Description
UTF-8 aware alternative to str_ireplace Case-insensitive version of str_replace
Description:JString/str ireplace
Syntax
str_ireplace($search, $replace, $str, $count=NULL)
| Parameter Name | Default Value | Description |
|---|---|---|
| $search | string to search | |
| $replace | existing string to replace | |
| $str | new string to replace with | |
| $count | NULL | optional count value to be passed by referene |
Defined in
libraries/joomla/utilities/string.php
Importing
jimport( 'joomla.utilities.string' );
Source Body
function str_ireplace($search, $replace, $str, $count = NULL) { jimport('phputf8.str_ireplace'); if ( $count === FALSE ) { return utf8_ireplace($search, $replace, $str); } else { return utf8_ireplace($search, $replace, $str, $count); } }
[Edit See Also] SeeAlso:JString/str ireplace