How aobut adding support for the # wildcard for iswm statments, IE:
if (###-###-#### iswm $1) { echo Valid 10 Digit Phone Numer }
else { echo Invalid 10 Digit Phone Numbers }
instead of having to $remove the -'s, and then do
if ($len($1) == 10 && $1 isnum) { blah }