From:             padma dot prakerti at gmail dot com
Operating system: Linux
PHP version:      5.2.9
PHP Bug Type:     *XML functions
Bug description:  dynimically access object parameters

Description:
------------
Hi,

I do need dynimically access object parameters from xml parser.But donot
have any ideas onhow to dynamically access object parameters.How to
implement magic code on it.
Here is my static code:

foreach ($x->data->DIPENDRA20090320[0]->ENTRY as $valuei) {
echo “ID: “.$valuei->_text->ID;
echo “Name: “.$valuei->_text->NAME;
echo “Address: “$car->_text->ADDRESS;
}

Let me know whenever you will get  this message.I would really appreciate
your help.

Regards,
Padma



Reproduce code:
---------------
---
>From manual page: language.oop5.magic
---



-- 
Edit bug report at http://bugs.php.net/?id=48395&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=48395&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=48395&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=48395&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=48395&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=48395&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=48395&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=48395&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=48395&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=48395&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=48395&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=48395&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=48395&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=48395&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=48395&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=48395&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=48395&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=48395&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=48395&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=48395&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=48395&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=48395&r=mysqlcfg

Reply via email to