Replace
Less than 1 minute
Replace
Replace a string with another string.
class ReplaceMethods
run
public run(string $string, string $search, string $replace): stringReturns: string
Parameters
| Parameter | Type | Description |
|---|---|---|
$string | string | The input string |
$search | string | The value to search for |
$replace | string | The value to replace with |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:16 +0000