RE: [PHP] php 4.0.2 and args in a function
| From: | James Moore | Date: | Fri, 01 Sep 2000 19:22:20 +0000 |
| Subject: | RE: [PHP] php 4.0.2 and args in a function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14862@lists.php.net to get a copy of this message | ||
> James -
>
> Thanks for the reply. Yup, I've gone through most of my functions and
> started to assign default values, most likely a better way to code
> anyway. But I also had to change the code in the function. Previously I
> was using isset() to see if an argument was passed to the
> function. Setting the var to "" doesn't allow me to do this any more. Is
> isempty() the solution?
>
> -- Scott
>
try it and see.. else
if($var2="") {
or I think
if(!$var2) {
would work too...
James