ID: 26342
Updated by: [EMAIL PROTECTED]
Reported By: ccetanr at nus dot edu dot sg
-Status: Open
+Status: Bogus
Bug Type: Date/time related
Operating System: WIN XP
PHP Version: 4.3.4
New Comment:
That's absolutely correct. Do a var_dump() instead of a
print_r() to see the boolean return value.
J
Previous Comments:
------------------------------------------------------------------------
[2003-11-21 17:36:33] roleli at hotmail dot com
Not a bug.
the fuction returns TRUE or FALSE.
you can test e.g
if (checkdate(11,32,2003))
{
echo "Date ok";
}
else
{
echo "Date not ok";
}
Look at the documentation at
http://us4.php.net/manual/en/function.checkdate.php
Roland
------------------------------------------------------------------------
[2003-11-21 02:07:31] ccetanr at nus dot edu dot sg
Description:
------------
When return the value from the function, no value is returned.
Reproduce code:
---------------
<?php
$check = checkdate(11,32,2003);
print_r($check);
?>
Expected result:
----------------
Nothing returns?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26342&edit=1