NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHP 5 guru: help fix simple PEAR DB problem

Chris Bielanski Cbielanski at inta.org
Mon Feb 2 11:56:48 EST 2004


It appears to me that "perl-style" is the outcome of a sort of "parallel
evolution" in any language using the "." as something other than the member
operator. Especially when it's OO in even the vaguest sense :)

I mean, you've got to get there somehow when you can't say
"object.member()", right?

Thanks,
Chris Bielanski - [CBielanski at inta.org]
Web Programmer, 
International Trademark Association - [www.inta.org]
1133 Ave. of the Americas - Manhattan
p - 212/642-1745





-----Original Message-----
From: Edward Potter [mailto:ejp at well.com]
Sent: Monday, February 02, 2004 11:49 AM
To: NYPHP Talk
Subject: Re: [nycphp-talk] PHP 5 guru: help fix simple PEAR DB problem


Yipes, php is beginning to look more like perl everyday!  :-)

On Feb 1, 2004, at 11:58 PM, Dan Cech wrote:
>
>   if ($fetchmode == DB_FETCHMODE_ASSOC) {
>                 while (is_array($row = 
> $res->fetchRow(DB_FETCHMODE_ASSOC))) {
>                     reset($row);
>                     $key = current($row);
>                     unset($row[key($row)]);
>                     if ($group) {
>                         $results[$key][] = $row;
>                     } else {
>                         $results[$key] = $row;
>                     }
>                 }   ..........
>

//-----------------------------------------
http://mygoo.typepad.com
http://mygoo.typepad.com/coder

_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk



More information about the talk mailing list