Development
[PHP] 공백이 한 칸 이상일 때 공백 제거
곽진돔
2021. 12. 27. 14:42
$str = preg_replace("/\s{2,}/"," ",$str);
// 공백이 2개이상일때 한 개로 대체