Like this:

$blah = "hello";
$miaow[$blah][5] = 3.14;

(  is the same as doing $miaow["hello"][5] = 3.14;  )

- Siggy

----- Original Message -----
From: "Alarion" <[EMAIL PROTECTED]>
To: "'PHP-DB'" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to