|
Replace words in a string
| Author | |
| Description | Find an replace words in any string using str_replace, from php.net |
| Rating | (32 votes) |
PHP Code
// Provides: You should eat pizza, beer, and ice cream every day
$phrase = "You should eat fruits, vegetables, and fiber every day.";
$healthy = array("fruits", "vegetables", "fiber");
$yummy = array("pizza", "beer", "ice cream");
Comments
No comments posted yet.
|