collecting values in array from tags ??
Posted: Mon Nov 26, 2007 12:01 am
Hello forums.
Supppose i had following format in a string
I would like to collect those values and names in an array as
Any suggestions and hints are warmly welcome.
Supppose i had following format in a string
Code: Select all
$string = '<tag value="1">Name1</tag>
<tag value="2">Name2</tag>
:
:
<tag value="n">Namen</tag>';Code: Select all
$array['name'] = array('Name1', 'Name2', .., 'Namen');
$array['value'] = array('1', '2', .., 'n');