Untitled

mail@pastecode.io avatar
unknown
php
a year ago
202 B
2
Indexable
Never
if(preg_match('/^09(0(\d)|1(\d)|2(\d)|3(\d)|(9(\d)))\d{7}$/', $preNumber)) {
    //Number with 0
}

if(!preg_match('/^9(0(\d)|1(\d)|2(\d)|3(\d)|(9(\d)))\d{7}$/', $preNumber)) {
   //Number without 0 
}