$s){ if(preg_match('/^[0-9]+$/',$s))array_push($out,$s); } if($out[0] == 3)array_unshift($out, '+'); elseif($out[0] == 8)array_unshift($out, '+','3'); elseif($out[0] == 0)array_unshift($out, '+','3','8'); //if( preg_match("/^8/",$tel) ) print implode('',$out); //print "
" . $arr[0]; ?>