This is seemingly so simple is embarrassing to ask help on
I need to match 3 numeric variables separately... they are partial date variables
i need to check $year against any 4 digit number no range
i need to check $month against any number between 1 and 12
i need to check $day against and number between 1 and 31
now i tried for instance:
if (preg_match("/([1-31])/",'123'))
{
echo "true";
}
else
{
echo "false";
}
but that returns true... it should be false since its out of range... im no regex geneious