note 9999 added to Functions

From: Date: Tue, 05 Dec 2000 21:51:37 +0000
Subject: note 9999 added to Functions
Groups: php.notes 
Request: Send a blank email to php-notes+get-8435@lists.php.net to get a copy of this message
If a user-defined function does not explicitly return a value, then it will return NULL. For most truth tests, this can be considered as FALSE. For example: function print_list ($array) { print implode ("<br />", $array); } if (print_list ($HTTP_POST_VARS)) print "The print_list function returned a value that can be considered true." else print "The print_list function returned a value that can be considered false." http://www.php.net/manual/functions.php

« previous php.notes (#8435) next »