Welcome to mirror list, hosted at ThFree Co, Russian Federation.

PE.php « PhoneNumber « Validator « src « zend-i18n « zendframework « vendor - github.com/bareos/bareos-webui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 55952bdc5ab9bca7e7b1ec3b9005b7b659dd3381 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/zf2 for the canonical source repository
 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

return array(
    'code' => '51',
    'patterns' => array(
        'national' => array(
            'general' => '/^[14-9]\\d{7,8}$/',
            'fixed' => '/^(?:1\\d|4[1-4]|5[1-46]|6[1-7]|7[2-46]|8[2-4])\\d{6}$/',
            'mobile' => '/^9\\d{8}$/',
            'tollfree' => '/^800\\d{5}$/',
            'premium' => '/^805\\d{5}$/',
            'shared' => '/^801\\d{5}$/',
            'personal' => '/^80[24]\\d{5}$/',
            'emergency' => '/^1(?:05|1[67])$/',
        ),
        'possible' => array(
            'general' => '/^\\d{6,9}$/',
            'fixed' => '/^\\d{6,8}$/',
            'mobile' => '/^\\d{9}$/',
            'tollfree' => '/^\\d{8}$/',
            'premium' => '/^\\d{8}$/',
            'shared' => '/^\\d{8}$/',
            'personal' => '/^\\d{8}$/',
            'emergency' => '/^\\d{3}$/',
        ),
    ),
);