Menu
Hello forums.
Supppose i had following format in a string
[code=php]$string = ‘<tag value=”1″>Name1</tag>
<tag value=”2″>Name2</tag>
:
:
<tag value=”n”>Namen</tag>’;
I would like to collect those values and names in an array as
[code=php]$array[‘name’] = array(‘Name1’, ‘Name2’, .., ‘Namen’);
$array[‘value’] = array(‘1’, ‘2’, .., ‘n’);
Any suggestions and hints are warmly welcome.