Re: arrays

From: Date: Sun, 04 Feb 2001 22:20:04 +0000
Subject: Re: arrays
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-6368@lists.php.net to get a copy of this message
Like this: $blah = "hello"; $miaow[$blah][5] = 3.14; ( is the same as doing $miaow["hello"][5] = 3.14; ) - Siggy ----- Original Message ----- From: "Alarion" <alarion@planetunreal.com> To: "'PHP-DB'" <php-db@lists.php.net> Sent: Monday, February 05, 2001 10:06 AM Subject: [PHP-DB] arrays > Hello, > Well, I haven't used arrays in PHP too much and am wondering how I might > go about this: > > I want to loop through a result set, say with ODBC, and use the > "fetch_array" function for each row. Now, What I want is a an array of all > the rows, so I could then access the "Name" column in Row 5 like > $values[NAME][5]. > How would I create an array that way? > > Any help would be appreciated, thanks > > Sean Finkel > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.db (#6368) next »