這種格式10-7-2010
可以用php進行驗證嗎? 有了這個腳本:在DD-MM-YYYY中驗證日期「格式在php
$array = explode('-', $str);
$day = $array[0];
$month = $array[1];
$year = $array[2];
$Valid = checkdate($month, $day, $year);
我有這樣的錯誤:
checkdate() expects parameter 2 to be long
我如何可以驗證這樣的格式? 在此先感謝
在這裏工作! http://codepad.viper-7.com/0idtfL – Artefacto 2010-07-15 15:39:10