php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48395 dynimically access object parameters
Submitted: 2009-05-26 06:15 UTC Modified: 2009-05-26 08:04 UTC
From: padma dot prakerti at gmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.2.9 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: padma dot prakerti at gmail dot com
New email:
PHP Version: OS:

 

 [2009-05-26 06:15 UTC] padma dot prakerti at gmail dot com
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
---



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-26 08:04 UTC] jani@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Feb 08 18:00:01 2026 UTC