From: jkaufman at wamnet dot com Operating system: Mandrake Linux 9.1 PHP version: 4.3.2 PHP Bug Type: Scripting Engine problem Bug description: Problem with multidimensional arrays
Given this data structure: $user_master = array ('user_id'=>'user_id', 'user_name'=>'requester', 'user_login'=>'login_name', 'user_region_id'=>'user_region'); $user_master['links']['user_region_id']='region_master["region_id"]'; The idea is to have one or more entries to relate certain db fields to other tables. If $tbl='user_master and $key='user_region_id', then if I do this: if (array_key_exists('links', $$tbl))... I get a true response. The key exists. However, I cannot access the values using any of these contructs: $value=$$tbl['links'][$key] $values=array_values ($$tbl['links']) if (array_key_exists($key, $$tbl['links']) etc. etc. -- Edit bug report at http://bugs.php.net/?id=23876&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23876&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23876&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23876&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23876&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23876&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23876&r=support Expected behavior: http://bugs.php.net/fix.php?id=23876&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23876&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23876&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23876&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23876&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23876&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23876&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23876&r=gnused