I have this little script to make a photo gallery. Now i want to add a title to each photo. How can i add a variable to this script?
<ul class="gallery">
<?php foreach ($foto as $a) { ?>
<li><img src="images/<?php echo $a; ?>.jpg" title="<?php (second $var) ?>"/></a></li>
<?php ; } ?>
</ul>
Thanks in advance!