<?php 
$telNum="(0531) 3801100-(23232)";
if (preg_match("/^([0-9]|[-\(\) ]){1,30}$/",$telNum))
  echo 'true';
else
  echo 'false';
?>照你的要求写的, 可能不是很精练.
另外, 用preg类的比ereg类的好.