$line = "Hello World";
$line= preg_replace("/Hello/", $replacement, $line); - Works!
$find = "Hello";
$line= preg_replace("/$find/", $replacement, $line); - Wont replace anything!
$string = "Hello";
$find = "/".$string."/";
$line= preg_replace($find, $replacement, $line); - Wont replace anything!
我如何使用一个变量来说明:preg_replace()
哪些东西可以找到?