#26342 [Com]: Function does not return any values at all.

From: Date: Fri, 21 Nov 2003 22:36:34 +0000
Subject: #26342 [Com]: Function does not return any values at all.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-50826@lists.php.net to get a copy of this message
ID: 26342 Comment by: roleli at hotmail dot com Reported By: ccetanr at nus dot edu dot sg Status: Open Bug Type: Date/time related Operating System: WIN XP PHP Version: 4.3.4 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#50826) next »