Re: Assign multiple variables from mysql_fetch_row() call

From: Date: Wed, 05 Sep 2001 18:35:48 +0000
Subject: Re: Assign multiple variables from mysql_fetch_row() call
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-66077@lists.php.net to get a copy of this message
You wrote: > >I use list context a lot in PHP and Perl, and I prefer Perl's way of > >doing it *because* it allows you to be as verbose or terse as you > >like. > >PHP, unfortunately, doesn't give you that freedom. > > Hmm... the freedom to write unreadable, unmaintainable code, yes this > is a very important feature. Yes, well, that all depends on who's writing it. I've been writing Perl for several years, and believe you me, the code is plenty readable. And, it's much more concise than anything written in PHP. That freedom is what's so appealing about Perl. But of course, I'm on a PHP list (because I like both), so the people who will agree with me are few and far between. One can write unreadable code in PHP or Perl. It all depends on what you know about the language and how well you are able to use it. Keywords make no real difference, because when I see ($foo, $bar), I know it's a list. I don't need a list() operator to know that. ;) -- -Ryan :: ICQ - 595003 :: GigaBoard - http://www.gigaboard.net/

« previous php.general (#66077) next »