02.
03.
04.
05.
06.
07.function isUrl($url)
08.{
09.return preg_match("/^http:\/\/[_a-zA-Z0-9-]+(.[_a-zA-Z0-9-]+)*$/",$url);
10.}
11.
12.
13.
14.
15.
16.
17.
18.
19.function isEmail($email)
20.{
21.return preg_match('/^[\w\-\.]+@[\w\-\.]+(\.\w+)+$/',$email);
22.}
23.
24.
25.
26.
27.
28.
29.
30.
31.function isMobile($modile)
32.{
33.return preg_match('/^(13|15|18)[0-9]{9}$/',$modile);
34.}
35.
36.
37.
38.
39.
40.
41.
42.
43.function isPhone($phone)
44.{
45.return preg_match('/^[0-9-]{6,13}$/',$phone);
46.}
47.
48.
49.
50.
51.
52.
53.
54.
55.function isZipcode($code)
56.{
57.return preg_match('/^[0-9]{6}$/',$code);
58.}