php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26342 Function does not return any values at all.
Submitted: 2003-11-21 02:07 UTC Modified: 2003-11-21 18:21 UTC
From: ccetanr at nus dot edu dot sg Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 4.3.4 OS: WIN XP
Private report: No CVE-ID: None
 [2003-11-21 02:07 UTC] 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?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-21 17:36 UTC] 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 18:21 UTC] jay@php.net
That's absolutely correct. Do a var_dump() instead of a 
print_r() to see the boolean return value. 
 
J 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 01 20:01:31 2024 UTC