Sorry, ich habe noch einmal genau gelesen und ich glaub ich habe es jetzt verstanden.
if (!preg_match('~^([\d]{1,6})([-]{1})([\d]{1,15})$~', $telefon)){
ich hoffe das ist richtig.
MfG
Andy
Sorry, ich habe noch einmal genau gelesen und ich glaub ich habe es jetzt verstanden.
if (!preg_match('~^([\d]{1,6})([-]{1})([\d]{1,15})$~', $telefon)){
ich hoffe das ist richtig.
MfG
Andy