$var2 = str_replace(".", "-", $var1);. 3. echo $var2; // hello-world. 4. . Source: stackoverflow.com. php replace string within string.
確定! 回上一頁