2011-02-04 4 views

답변

6

interpolate variables은 큰 따옴표로만 입력 할 수 있습니다. 사용

str_replace("/$city/", 'index.php?deal=', $insert1); 

또는를 : 당신은 작은 따옴표를 사용하는

str_replace('/' . $city . '/', 'index.php?deal=', $insert1); 
+0

팁 주셔서 감사합니다. – mrlayance