<?php $phone="971588471481"; $pattern = "/^(?:(?:00)?971)?(?:5[0124568]|[234679])\d{7}$/"; if(preg_match($pattern, $phone)) { echo "Match Result: valid Phone Number"; }else{ echo "Match Result: Phone number is not valid"; }
You have javascript disabled. You will not be able to edit any code.