php如何判断输入的字符串为日期型
$_REQUEST["date"]="2011-2-5 12:23:22"
php如何判断上面的为日期型呢?
php如何判断上面的为日期型呢?
作者: feng11111111111 发布时间: 2011-05-27
PHP code
$date = '2011-2-5 12:23:22'; if (!strtotime($date)) echo '非法数据!';
作者: T5500 发布时间: 2011-05-27
看看....
作者: WWLONGLI 发布时间: 2011-05-27