Source for file Phone.class.php
Documentation is available at Phone.class.php
* Gumbo Library Framework
* This library is being released under the terms of the New BSD License. A
* copy of the license is packaged with the software (LICENSE.txt). If no
* copy is found, a copy of the license template can be found at:
* http://www.opensource.org/licenses/bsd-license.php
* @copyright Copyright (c) 2007, iBayou, Michael Luster
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @author Michael Luster <mluster79@yahoo.com>
* @link http://sourceforge.net/projects/phpgumbo
* Phone Number Validation Class
* @copyright Copyright (c) 2007, iBayou, Michael Luster
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @author Michael Luster <mluster79@yahoo.com>
* @link http://sourceforge.net/projects/phpgumbo
* @desc Phone Number Validation Class
* @param bool $throw throw Exceptions
* @param int $level Error Level thrown
public function __construct ($throw=
false, $level=
null) {
* Returns if the value is a Phone Number
* @todo implement this method
* Returns if the value is a valid US Phone Number
* @throws Gumbo_Exception
$this->isMatch ($val, "^([0-9]{3})([0-9]{3})([0-9]{4})$");