- Mon Jan 02, 2017 7:12 am
#788189
Hi,
I have a code snippet which stores the tags and value in an array (indexed). Please see below:
<foo>Test</foo>
$data['foo'] = 'Test';
But when I store the tag which has attributes as mentioned below, it does not accept.
<foo order='1'>Test</foo>
Array: $data['foo'] = array('_'=>'Test','order'=>'1'); //Referred from forums
But it sets the attributes and not actual data for the tag.
Please help me in this, how to do this.
Thanks & Regards,
Julias
I have a code snippet which stores the tags and value in an array (indexed). Please see below:
<foo>Test</foo>
$data['foo'] = 'Test';
But when I store the tag which has attributes as mentioned below, it does not accept.
<foo order='1'>Test</foo>
Array: $data['foo'] = array('_'=>'Test','order'=>'1'); //Referred from forums
But it sets the attributes and not actual data for the tag.
Please help me in this, how to do this.
Thanks & Regards,
Julias