<?php $phones = [ '2345678', '00000000', '00100000', '123456789', '000000000', '12345678901234567', ]; foreach ($phones as $phone) { echo (preg_match('/^(?=0*[1-9])\d{8,16}$/', $phone) ? 'Pass' : 'Fail') . "\n"; }
You have javascript disabled. You will not be able to edit any code.