php validate number only code example
Example 1: php validate only numbers
is_numeric($value); //returns true || false
Example 2: validate number should by 12 digit in php
/^$|^[0-9]{12}$/
is_numeric($value); //returns true || false
/^$|^[0-9]{12}$/