[ create a new paste ] login | about

Link: http://codepad.org/vU93O1VX    [ raw code | output | fork ]

minitech - PHP, pasted on Apr 30:
1
2
3
4
5
6
7
8
<?php
$file = array('one.zip', 'two.zip', 'three.zip');
$name = array('ZIP number one', 'ZIP #2', 'ZIP file 3!');

foreach(array_combine($file, $name) as $f => $n) {
    echo "<a href=\"$f\">$n</a>\n";
}
?>


Output:
1
2
3
<a href="one.zip">ZIP number one</a>
<a href="two.zip">ZIP #2</a>
<a href="three.zip">ZIP file 3!</a>


Create a new paste based on this one


Comments: