Jump to content

Numbers to a Phone number


cooldude832

Recommended Posts

 

I posted this earlier today

 

http://www.phpfreaks.com/forums/index.php/topic,163564.0.html

 

Using that function you could

 

php
$tel = array (
                'US' => '+1 (###) ###.####',
                'UK' => '+44 ### ### ####'
            );
            
$phone = '5555555555';
$loc = 'US';

echo format_template ($phone, $tel[$loc]), '<br>';


$phone = '5555555555';
$loc = 'UK';

echo format_template ($phone, $tel[$loc]), '<br>'; 
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.