- array_slice: documentation ( source)
- print_r: documentation ( source)
- preg_match_all: documentation ( source)
<?php
$regexp = '/\(*(\d{2})\)*\s*(\d{4,5})\s*.*\s*(\d{4})/i';
$matches=array();
preg_match_all($regexp, '(11) 94789-2180', $matches);
print_r(array_slice($matches,1));