PHPスクリプト/str_replace()

PHPスクリプト

str_replace()

文字列の置換

書式

mixed str_replace(mixed old, mixed new, mixed v)
値 v の中にある old を new に置き換えます。

<?PHP
$str = "WindowsサーバとLinuxサーバ";
print str_replace("サーバ", "Server", $str);
?>