php str_replace multiple
str_replace(array(':', '\\', '/', '*'), ' ', $string);
php str_replace multiple
str_replace(array(':', '\\', '/', '*'), ' ', $string);
replace multiple characters one string php
// 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);
how to replace multiple characters in a string in php
to replace double quotes, you can do this:
$newPhrase = str_replace('"', '', $phrase);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us