PHP Periksa apakah nomor dimulai dengan 0
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
}