Text increment generator for photo links

Myler

the horror.
Apr 25, 2009
531
6
0
G16
I deal with a lot of links in my websites and I always post them on my server.

The problem is, I have to copy paste them and edit the numbers by hand. For instance;

<img src="http://www.website.com/images/a-1.jpg" alt="" />
<img src="http://www.website.com/images/a-2.jpg" alt="" />
<img src="http://www.website.com/images/a-3.jpg" alt="" />
<img src="http://www.website.com/images/a-4.jpg" alt="" />
<img src="http://www.website.com/images/a-5.jpg" alt="" />

How can I automate this shit to generate the a-1 part, and make me a-1 to a-99 without me doing it one by one
 


Unless I'm missing something you could always do something like:

<?php

for($i = 1; $i < 100; $i++) {
echo '<img src="http://www.website.com/images/a-'.$i.'.jpg" alt="" />'.PHP_EOL;
}

?>