[PHP] 두 칸 이상의 공백을 한 칸으로 정규식

  • Post author:
  • Post category:PHP
  • Post comments:0 Comments
$Tb_S092 = preg_replace('/[ |\t]+/', ' ', $Tb_S092);
$Tb_S092 = preg_replace('/\s{2,}/', ' ', $Tb_S092);
$Tb_S092 = preg_replace('/\s{2,}/u', ' ', $Tb_S092);
$Tb_S092 = preg_replace('/[\s]+/', ' ', $Tb_S092);
guest
0 Comments
Inline Feedbacks
View all comments