- var_dump: documentation ( source)
- simplexml_load_string: documentation ( source)
<?php
$xml = <<<XML
<VAST version="3.0">
<MediaFiles>
<MediaFile delivery="progressive" type="video/mp4" width="640" height="360" bitrate="500" scalable="true" maintainAspectRatio="true">
<![CDATA[
https://appnext-a.akamaihd.net/banner/video/video-192347-30_o.mp4?rnd=1488986809
]]>
</MediaFile>
<MediaFile delivery="progressive" type="video/mp4" width="320" height="180" bitrate="500" scalable="true" maintainAspectRatio="true">
<![CDATA[
https://appnext-a.akamaihd.net/banner/video/video-192347-30.mp4?rnd=1488986813
]]>
</MediaFile>
</MediaFiles>
</VAST>
XML;
$response = simplexml_load_string($xml);
$files = $response->MediaFiles->MediaFile;
foreach ($files as $file) {
var_dump((string)$file);
}