<?php
$columns = array(
0 => 'ISO',
1 => 'Country',
2 => 'Country Code',
3 => 'Type of number',
4 => 'Voice Enabled',
5 => 'SMS Enabled',
6 => 'MMS Enabled',
7 => 'Domestic Voice Only',
8 => 'Domestic SMS only',
9 => 'Price /num/month',
10 => 'Inbound Voice price/min',
11 => 'Inbound SMS price/msg ',
12 => 'Inbound MMS price/msg ',
13 => 'Beta Status',
14 => 'Address Required',
);
$cols = array_filter($columns, '_filter_column_names');
function _filter_column_names($column_name){
$column_name = str_replace(' /', '_', $column_name);
$column_name = strtolower(str_replace(array(' ', '/'), '_', trim($column_name)));
echo $column_name.', ';
return $column_name;
}
print_r($cols);
- Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 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
- iso, country, country_code, type_of_number, voice_enabled, sms_enabled, mms_enabled, domestic_voice_only, domestic_sms_only, price_num_month, inbound_voice_price_min, inbound_sms_price_msg, inbound_mms_price_msg, beta_status, address_required, Array
(
[0] => ISO
[1] => Country
[2] => Country Code
[3] => Type of number
[4] => Voice Enabled
[5] => SMS Enabled
[6] => MMS Enabled
[7] => Domestic Voice Only
[8] => Domestic SMS only
[9] => Price /num/month
[10] => Inbound Voice price/min
[11] => Inbound SMS price/msg
[12] => Inbound MMS price/msg
[13] => Beta Status
[14] => Address Required
)
preferences:
299.97 ms | 407 KiB | 456 Q