######## 텍스트 창에 숫자만 입력
$text = "0#12.3f4hhds56.7dd890"; $StelInt = ereg_replace("[^0-9]", "", $text); 또는 $StelInt = preg_replace ("/[^0-9]*/s", "", $text); --> 하단은 일반적인 전화번호 보는 형식으로 만들기 if(substr($StelInt,0,1) == 0) { if(substr($StelInt,0,2) == 02) …