Function __global->str_replace
Definitions
sources_custom/phpstub.php
- Replace all occurrences of the search string with the replacement string.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $search | mixed | No | No | required parameter | N/A | N/A | What's being replaced (string or array) |
| $replace | mixed | No | No | required parameter | N/A | N/A | What's being replaced with (string or array) |
| $subject | mixed | No | No | required parameter | N/A | N/A | Subject (string or array) |
Returns
- Result (string or array)
- Type: mixed
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Replace all occurrences of the search string with the replacement string.
*
* @param mixed $search What's being replaced (string or array)
* @param mixed $replace What's being replaced with (string or array)
* @param mixed $subject Subject (string or array)
* @return mixed Result (string or array)
*/
function str_replace($search, $replace, $subject)
* Replace all occurrences of the search string with the replacement string.
*
* @param mixed $search What's being replaced (string or array)
* @param mixed $replace What's being replaced with (string or array)
* @param mixed $subject Subject (string or array)
* @return mixed Result (string or array)
*/
function str_replace($search, $replace, $subject)

