NYCPHP Meetup

NYPHP.org

[nycphp-talk] Question Using If's and Possible Arrays

Daniel Convissor danielc at analysisandsolutions.com
Tue Jan 17 20:36:00 EST 2006


Joe:

On Tue, Jan 17, 2006 at 08:20:03PM -0500, IAlsoAgree at stny.rr.com wrote:
> function callfunction()
>  {
>   return false;
>  }
>
> $variable = callfunction()
> 
> if ($variable['alias'])

You made a nearly perfect test case.  Why don't you run it and see what 
happens?  You'd have your answer already.

--Dan

PS:  You'll find that you need to check for "if ($variable)" first.

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409



More information about the talk mailing list