API17:JString::substr replace
From Joomla! Documentation
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
JString::substr_replace source code on BitBucket
Class JString
Subpackage Utilities- Other versions of JString::substr_replace
User contributed notes
Code Examples