I want to remove only country code not slash from string .
suppose: phone number is +1-555-555-5555
and i want like 555-555-5555
My code is
<?php
$sPhoneNumber =get_post_meta($post_id, '_vfb_field-23', true);
echo $result = preg_replace("/[^0-9]/", "", $sPhoneNumber);
?>
it given me output like 15555555555
and i want 555-555-5555