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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -