Maison > Article > développement back-end > str_replaced函数的有关问题
str_replaced函数的问题?
<br />$bodytext = str_replace("%body%", "black", "<body text='%body%'>");<br />var_dump($bodytext);<br />echo str_replace("world","John","Hello world!");<br />
$bodytext = str_replace("%body%", "black", "<body text='%body%'>");<br />var_dump($bodytext);string(19) ""