Echo a value of XML in PHP -
i want echo <version>-tag url: http://marketplaceedgeservice.windowsphone.com/v3.2/en-us/apps?q=ctrlbase&chunksize=50&clienttype=winmobile%208.0
how in php?
split text 2 parts using explode.
$firstarray = explode("<version>", $string); then again split remaining content 2 parts
$secondarray = explode("</version>", $firstarray[1]); then have text inside version tag in array $secondarray.
just echo $secondarray[0];
Comments
Post a Comment