I was getting multidimensional array with an HTML code recently and thought this might help others with similar problem:


<?php
$files = array('a','b','c');
$link = 'gallery.php';

echo $link.'?files[]='.implode('&files[]=',$files);
?>