Comment remplacer plusieurs caractères dans une chaîne en php
to replace double quotes, you can do this:
$newPhrase = str_replace('"', '', $phrase);
Tanzeela Yousuf
to replace double quotes, you can do this:
$newPhrase = str_replace('"', '', $phrase);
// Provides: You should eat pizza, beer, and ice cream every day
$phrase = "You should eat fruits, vegetables, and fiber every day.";
$healthy = ["fruits", "vegetables", "fiber"];
$yummy = ["pizza", "beer", "ice cream"];
$newPhrase = str_replace($healthy, $yummy, $phrase);