I have string with phone number that I need to transform from one format to another.
Example:
"02030266079" => "0203 026 6079"
I tried:
$num = "02030266079";
$transformed= preg_replace("/^(/d{4})(/d{3})(/d{4})$/", "$1 $2 $3", $num);
But nothing happens!