cvs: pear /Validate/Validate NZ.php

From: Date: Sat, 19 Aug 2006 06:34:39 +0000
Subject: cvs: pear /Validate/Validate NZ.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-41709@lists.php.net to get a copy of this message
badams Sat Aug 19 06:34:39 2006 UTC Modified files: /pear/Validate/Validate NZ.php Log: tabs to space http://cvs.php.net/viewvc.cgi/pear/Validate/Validate/NZ.php?r1=1.17&r2=1.18&diff_format=u Index: pear/Validate/Validate/NZ.php diff -u pear/Validate/Validate/NZ.php:1.17 pear/Validate/Validate/NZ.php:1.18 --- pear/Validate/Validate/NZ.php:1.17 Fri Aug 18 21:08:37 2006 +++ pear/Validate/Validate/NZ.php Sat Aug 19 06:34:39 2006 @@ -154,8 +154,8 @@ function phoneNumber($number, $requireAreaCode = true) { $number = str_replace(array("+", " ", "(", ")", "-"), - array("00", "", "", "", ""), - trim($number)); + array("00", "", "", "", ""), + trim($number)); if (!ctype_digit($number)) { return false; @@ -175,11 +175,11 @@ break; case 10: if (in_array(substr($number,0,4), - array("0800","0900","0508"))) { + array("0800","0900","0508"))) { // Is 0800,0900 or 0508 number $regexp = "(^0(8|9|5)0(0|8)[0-9]{6}$)"; } elseif (in_array(substr($number,0,3), - array("021","025","027"))) { + array("021","025","027"))) { //Is Mobile number $regexp = "(^02(1|5|7)[0-9]{3}[0-9]{4}$)"; }

« previous php.pear.cvs (#41709) next »