API17

API17:JString::substr replace

From Joomla! Documentation

Joomla 11.1 JString::substr_replace

Description

UTF-8 aware substr_replace Replace text within a portion of a string.


public static function substr_replace (
        $str
        $repl
        $start
        $length=NULL
)
Parameter Type Default Description
$str string the haystack
$repl string the replacement string
$start int start
$length int NULL length (optional)
  • Returns
  • Defined on line 375 of libraries/joomla/utilities/string.php

See also


User contributed notes

Code Examples