<?php
$valid_numbers = '639164481688, 63-9164481688,639-164481688,6391-64481688,63916-4481688, 639164-481688,6391644-81688,63916448-1688,639164481-688, 6391644816-88,63916448168-8,639164481688,639164481688,+63-9164481688,+639-164481688,+6391-64481688,+63916-4481688, +639164-481688,+6391644-81688,+63916448-1688,+639164481-688, +6391644816-88,+63916448168-8,+639164481688 +639164481688,0-9164481688,09-164481688,091-64481688,0916-4481688, 09164-481688,091644-81688,0916448-1688,09164481-688, 091644816-88,0916448168-8,09164481688';
$valid_numbers = array_map(function($val) {
return trim($val);
}, explode(',', $valid_numbers));
print_r($valid_numbers);
- Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.21, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- Array
(
[0] => 639164481688
[1] => 63-9164481688
[2] => 639-164481688
[3] => 6391-64481688
[4] => 63916-4481688
[5] => 639164-481688
[6] => 6391644-81688
[7] => 63916448-1688
[8] => 639164481-688
[9] => 6391644816-88
[10] => 63916448168-8
[11] => 639164481688
[12] => 639164481688
[13] => +63-9164481688
[14] => +639-164481688
[15] => +6391-64481688
[16] => +63916-4481688
[17] => +639164-481688
[18] => +6391644-81688
[19] => +63916448-1688
[20] => +639164481-688
[21] => +6391644816-88
[22] => +63916448168-8
[23] => +639164481688 +639164481688
[24] => 0-9164481688
[25] => 09-164481688
[26] => 091-64481688
[27] => 0916-4481688
[28] => 09164-481688
[29] => 091644-81688
[30] => 0916448-1688
[31] => 09164481-688
[32] => 091644816-88
[33] => 0916448168-8
[34] => 09164481688
)
- Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
- Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /in/9LeVv on line 6
Process exited with code 255. - Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
- Parse error: parse error, unexpected T_FUNCTION, expecting ')' in /in/9LeVv on line 6
Process exited with code 255. - Output for 4.3.2 - 4.3.4
- Parse error: parse error, expecting `')'' in /in/9LeVv on line 6
Process exited with code 255.
preferences:
186.48 ms | 401 KiB | 328 Q