ID:               23876
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jkaufman at wamnet dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: Mandrake Linux 9.1
 PHP Version:      4.3.2
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

You want $value=${$tbl}['links'][$key] -- what you are trying is
equivalent to $value=${$tbl['links'][$key]}


Previous Comments:
------------------------------------------------------------------------

[2003-05-29 14:11:25] jkaufman at wamnet dot com

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 this bug report at http://bugs.php.net/?id=23876&edit=1

Reply via email to