|
substr_replaceReplace text within a portion of a string Description
mixed substr_replace
( mixed
$string
, mixed $replacement
, mixed $start
[, mixed $length
] )
substr_replace replaces a copy of
Parameters
Return Values
The result string is returned. If Changelog
Examples
Example #1 Simple substr_replace examples
<?php
Example #2 Using substr_replace to replace multiple strings at once
<?php The above example will output: A: YYY; B: YYY; C: YYY A: AAA; B: BBB; C: CCC A: AAAXX; B: BBBX; C: CCC Notes
|