preg_replace 에 /u - unicode safe 적용
This commit is contained in:
1 parent
dbe8c45fa5
commit
7c6335fb47
1 file changed
+1
-1
+1
-1
@@ -11,7 +11,7 @@ $text_stx = "";
|
||||
$srows = 0;
|
||||
|
||||
$stx = strip_tags($stx);
|
||||
$stx = preg_replace('/[[:punct:]]/', '', $stx); // 특수문자 제거
|
||||
$stx = preg_replace('/[[:punct:]]/u', '', $stx); // 특수문자 제거
|
||||
if ($stx) {
|
||||
$stx = preg_replace('/\//', '\/', trim($stx));
|
||||
$sop = strtolower($sop);
|
||||
|
||||
Reference in new issue
Block a user