0
URLをPHPに置き換える方法 なぜこのコードは機能しないのですか? あなたがここにstr_replaceを採用したいURLをPHPに置き換える方法
$mylogo = 'http://example.com/images/logo.png';
$inputmylogo = 'http://example.com/image.png';
$file = 'setting.php';
$content = file_get_contents($file);
var_dump(preg_replace('/'.$mylogo.'/', $inputmylogo, $content));
使用 'str_replace()'リファレンスhttp://php.net/manual/en/function.str-replace.php –