/** * Strip leading zeros, plus signs and spaces from telnum string * as Zend validator wants the stripped down string * * @param mixed $value * @return boolean */ protected function validate($value) { return parent::validate(str_replace(' ', '', ltrim((string) $value, '0+'))); }