Re: [PHP] Associative arrays (names and strings)

2001-08-30 Thread Andrey Hristov
?php $arr = array(set1 = array(1, 2, 3, 4), set2 = array(11, 22, 33, 44), set3 = array(111, 222, 333, 444)); $a=array_keys($arr); var_dump($a); // var_dump(array_keys($arr)[set1]); not possible ? Andrey Hristov IcyGEN Corporation http://www.icygen.com 99% - Original Message -

Re: [PHP] Associative arrays (names and strings)

2001-08-30 Thread _lallous
not what I want! i want something like this when you do mysql_fetch_array() don't you get a reference to your columuns via fieldname or array index? ie. $row = mysql_fetch_array($result_set); echo $row['name']; or echo $row[0]; same return same value! I want something like it with my initial

Re: [PHP] Associative arrays (names and strings)

2001-08-30 Thread Andrey Hristov
http://www.icygen.com 99% - Original Message - From: _lallous [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 30, 2001 4:10 PM Subject: Re: [PHP] Associative arrays (names and strings) not what I want! i want something like this when you do mysql_fetch_array() don't you

Re: [PHP] Associative arrays (names and strings)

2001-08-30 Thread _lallous
ugust 30, 2001 4:10 PM Subject: Re: [PHP] Associative arrays (names and strings) not what I want! i want something like this when you do mysql_fetch_array() don't you get a reference to your columuns via fieldname or array index? ie. $row = mysql_fetch_array($result_set); echo $r