/ Published in: PHP
![](/img/icon_sav.png?v3)
Formats a phone number as (xxx) xxx-xxxx or xxx-xxxx depending on the length.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Formats a phone number as (xxx) xxx-xxxx or xxx-xxxx depending on the length. function format_phone($phone) { else return $phone; }
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)