PHP überprüfen, ob die Nummer mit 0 beginnt
Use substr function:
if (substr($str, 0, 1) == '0' || substr($str, 0, 2) == '00') {
//=> matched
}
Xabos
Use substr function:
if (substr($str, 0, 1) == '0' || substr($str, 0, 2) == '00') {
//=> matched
}