
How to match array in PHP?

Don't know what exactly you wanted to match in array... anyhow giving you a most common and searching code in PHP "preg_match". That will accept "99999999" etc
**preg_match('/^[0-9-]+$/', $born_date);**

where $born_date is the variable.