PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $phrase = "You should eat fruits, vegetables, and fiber every fruits day."; $healthy = ["fruits", "vegetables", "fiber"]; $yummy = ["pizza", "beer", "ice cream"]; $newphrase = str_replace($healthy, "<mark> {$yummy}</mark>", $phrase); echo $newphrase;
Show:  
Copy Clear