Usage
PHP
nebula()->phone_format($number)
Parameters
$number
(Required) (String) The number to format
Default: None
Source File
Located in /libs/Utilities/Utilities.php on line 178.
No Hooks
This function does not have any filters or actions available. Request one?
PHP
public function phone_format($number=false){ if ( !empty($number) ){ return preg_replace('~.*(\d{3})[^\d]{0,7}(\d{3})[^\d]{0,7}(\d{4}).*~', '($1) $2-$3', $number); } return $number; }
Override
This function can not be short-circuited with an override filter. Request one?