Php Get Max Date From Array To Number