1<?php 2 3/** 4 * @see https://github.com/laminas/laminas-i18n for the canonical source repository 5 * @copyright https://github.com/laminas/laminas-i18n/blob/master/COPYRIGHT.md 6 * @license https://github.com/laminas/laminas-i18n/blob/master/LICENSE.md New BSD License 7 */ 8 9return [ 10 'code' => '212', 11 'patterns' => [ 12 'national' => [ 13 'general' => '/^[5689]\\d{8}$/', 14 'fixed' => '/^5(?:2(?:(?:[015-7]\\d|2[2-9]|3[2-57]|4[2-8]|8[235-7])\\d|9(?:0\\d|[89]0))|3(?:(?:[0-4]\\d|[57][2-9]|6[235-8]|9[3-9])\\d|8(?:0\\d|[89]0)))\\d{4}$/', 15 'mobile' => '/^6(?:0[0-6]|[14-7]\\d|2[2-46-9]|3[03-8]|8[01]|99)\\d{6}$/', 16 'tollfree' => '/^80\\d{7}$/', 17 'premium' => '/^89\\d{7}$/', 18 'emergency' => '/^1(?:[59]|77)$/', 19 ], 20 'possible' => [ 21 'general' => '/^\\d{9}$/', 22 'emergency' => '/^\\d{2,3}$/', 23 ], 24 ], 25]; 26