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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ccetanr at nus dot edu dot sg
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 02:01:33 2025 UTC