RAD function: strrep

A RAD function that returns a string after replacing a specified character sequence with another string.

Function

strrep

Format

strrep($target,$string1,$string2)

Parameters

The following parameters are valid for the strrep function:

Parameter Data type Description
$target String The string containing the characters specified to be replaced.
$string1 String The string within $target to be replaced.
$string2 String The string replacing $string1.

Example

$s=strrep("Personnel","sonnel","formance")

After execution, the value of $s is Performance.