Re: Assign multiple variables from mysql_fetch_row() call

From: Date: Thu, 06 Sep 2001 00:21: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-66133@lists.php.net to get a copy of this message
On Wed, 5 Sep 2001 17:13:59 -0400, Ryan Fischer (ryan@gigabee.com) wrote: >You wrote: >> >Sure it is. Lists or list context. () is not that hard to >> determine >> >what it means. At least, not nearly as hard as you make it out to >> >be for any moderately-experienced programmer. >> >> So it's easy to look it up is if you already know what it does? I >> think the majority of people looking it up would be >> not-so-experienced programmers :) > >Yes, but an inexperienced programmer wouldn't know where to look for >list, either. When you see ($foo, $bar), you know two or more items >are >a list. What is a list? Two or more items. What do you have there? >Two or more items. Rather simple and intuitive to me. *shrug* well, not being an experienced perl programmer I look at that and have to wonder if it's some weird function or a language construct, and either way I have no way of looking it up. with list() I know it's a function and I have a page to flip to in the documentation or in the back of some book. >The way you learn to problem shouldn't be looking something up to >find out what it does, but rather learning what everything does, then >applying it by doing the programming afterwards. This sort of >backwards >thinking is what causes problems in the first place. :\ so newbies should have to memorize every function before being allowed to start writing code? It doesn't work that way. That's like trying to learn chinese by reading a chinese dictionary. Humans learn the conversational stuff first (hello world, where is the bathroom) and progress to the more obscure stuff. Php *is* newbie-friendly and that's a good thing.

« previous php.general (#66133) next »