I have

index.php
player.swf
swfobject.js
videos.xml files

Flash player retrieves data from videos.xml i want to play an array like $video = array('id1', 'id2', 'id3', 'id4') in index.php. how can i do this. i know php.