Re: [PHP4BETA] A quick clarification question about PHP4...
| From: | (Danny Heijl) | Date: | Thu, 26 Aug 1999 06:29:08 +0000 |
| Subject: | Re: [PHP4BETA] A quick clarification question about PHP4... | ||
| References: | 1 2 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-3740@lists.php.net to get a copy of this message | ||
I wrote a recordset database class (for Informix) along these new
guidelines, where all variables are initialized in the constructors
(without $var) as a way of documenting them. The recordset constructor takes
a database class reference as an argument, and it works in PHP3 and PHP4.
See http://users.pandora.be/danny.heijl/rs.zip .
Danny.
---
----- Original Message -----
From: "Samuel Liddicott" <sam@campbellsci.co.uk>
Newsgroups: php4.beta
Sent: woensdag 25 augustus 1999 14:22
Subject: RE: [PHP4BETA] A quick clarification question about PHP4...
>
>
> > -----Original Message-----
> > From: Andi Gutmans [mailto:andi@zend.com]
> > Sent: 25 August 1999 01:17 PM
> > To: Samuel Liddicott; zeev@zend.com; Jim Brain; Zend
> > Subject: RE: [PHP4BETA] A quick clarification question about PHP4...
> >
> > At 11:25 AM 8/25/99 +0100, Samuel Liddicott wrote:
> >
> > >Wow. I use it as self-documentation otherwise I can never remember the
> > >names of variables and end up with buggy code because I have two
> > different
> > >spellings. Oh well.
> >
> > You could have used comments for that :)
> > # var $foo;
>
> :-)
> I'm prone to comments getting out of date...
>
> > > > It's not the C++ model, it's a typical compile&execute model.
> > >
> > >Well it's not very nice...
> > >
> > >Also I move that constructors allow parameters.
> >
> > They do.
>
> Oh. I must have been confused during a sock in the recent fight.
>
> Does
>
> $item=new thingy(1,2);
>
> work then? How do you pass the parameters during construction?
>
> Sam
>
> --
> PHP 4 Beta
>