#26342 [Opn->Bgs]: Function does not return any values at all.

From: Date: Fri, 21 Nov 2003 23:21:11 +0000
Subject: #26342 [Opn->Bgs]: Function does not return any values at all.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-50827@lists.php.net to get a copy of this message
 ID:               26342
 Updated by:       jay@php.net
 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


Thread (3 messages)

« previous php.bugs (#50827) next »