Published on : August 05, 2020
Title | : | php.str_replace | ||||||||||||
Purpose | : | It replaces some characters with some other characters in a string. This function works by the following rules:
Note: This function is case-sensitive. Use the str_ireplace() function to perform a case-insensitive search. |
||||||||||||
Syntax | : | [php.str_replace p1=’find’ p2=’replace’ p3=’string’ p4=’count’ o.set=variable name /] | ||||||||||||
Input Parameters | : |
|
||||||||||||
Return Value | : | Returns a string or an array with the replaced values | ||||||||||||
Example 1 | : |
|
||||||||||||
Example 2 | : |
|