“como substituir vários caracteres em uma string em php” Respostas de código

como substituir vários caracteres em uma string em php

to replace double quotes, you can do this:
$newPhrase = str_replace('"', '', $phrase);
Tanzeela Yousuf

substitua vários caracteres uma 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);
Clever Corncrake

Respostas semelhantes a “como substituir vários caracteres em uma string em php”

Perguntas semelhantes a “como substituir vários caracteres em uma string em php”

Procure respostas de código populares por idioma

Procurar outros idiomas de código