Re: boolean type function ?
| From: | John W. Holmes | Date: | Wed, 18 Feb 2004 18:38:32 +0000 |
| Subject: | Re: boolean type function ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-178157@lists.php.net to get a copy of this message | ||
From: "Mike Mapsnac" <mikerh9@hotmail.com>
> I search on php.net. How to declare php function as type boolean?
>
> I tried the following declaration;
> function booolean check_ip_remote() &
> boolean check_ip_remote()
>
> But both declaration are wrong. I got the error messages
Unless this is something new (and undocumented) with PHP5, you do not
declare return types in PHP.
You can return(TRUE); or return(FALSE); to actually return a boolean value,
though.
---John Holmes...