02-06-2008, 04:26 PM
|
#2 (permalink)
|
|
Moderateur
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
|
It makes no sense to write a function exactly like the one you posted, because the function will always return TRUE. However it can be useful to have multiple return points based on different conditions.
PHP Code:
// Useless example function do_something($with_arg = NULL) { if ($with_arg === NULL) return FALSE;
echo 'Arg is: '; var_dump($arg); return TRUE; }
|
|
|
|