|
@@ -759,6 +759,7 @@ function format_string ($format, $data) {
|
|
foreach ($_SESSION["format"]["phone"] as &$format) {
|
|
foreach ($_SESSION["format"]["phone"] as &$format) {
|
|
$format_count = substr_count($format, 'x');
|
|
$format_count = substr_count($format, 'x');
|
|
$format_count = $format_count + substr_count($format, 'R');
|
|
$format_count = $format_count + substr_count($format, 'R');
|
|
|
|
+ $format_count = $format_count + substr_count($format, 'r');
|
|
if ($format_count == strlen($phone_number)) {
|
|
if ($format_count == strlen($phone_number)) {
|
|
//format the number
|
|
//format the number
|
|
$phone_number = format_string($format, $phone_number);
|
|
$phone_number = format_string($format, $phone_number);
|