Hola otra vez:
Tienes que recorrer el array php...

:
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below
<?php
for ($i = 0; $total = count($array); $i < $total; $i++)
echo "Pic[$i] = '$array[$i]'\n";
?>
Saludos