Created
December 3, 2016 02:51
-
-
Save igorsgm/e67306eddbf85aa2d9cf6b0f449533ff to your computer and use it in GitHub Desktop.
Substituirá os valores do primeiro array, pelos do segundo array (ordenadamente)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$novaString = str_replace(array('{subtag:mensagem_padrao}', '{subtag:mensagem_custom}'), | |
array($textoFixo, $textoPersonalizado), $minhaString); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment