Re: PHP4 and returning values from a function...

by "Richard Walker" <richardwalker(at)onebox.com>

 Date:  Thu, 6 Jun 2002 23:31:14 -0400
 To:  <hwg-languages(at)hwg.org>
 References:  ivtech
  todo: View Thread, Original

----- Original Message -----
From: "Jeffrey A. Diaz" <lgjdiaz(at)jeffdiaz.com>
To: "Michael Boyer" <galdor7(at)hotmail.com>;
<hwg-languages(at)hwg.org>
Sent: Thursday, June 06, 2002 10:17 PM
Subject: Re: PHP4 and returning values from a function...


> In addition to the missing semicolon, the line above is missing
a dollar sign:
>
>   $leapYear = isLeapYear(year);
>                         ^^^
>
> Probably won't generate an error, but won't work either.

That's part of the fun of PHP.  I haven't researched, I've chosen
to not think about it.... but, what is PHP's equivalent of

option explicit

or

use strict

?



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.368 / Virus Database: 204 - Release Date: 5/30/2002

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA