Is there a way for php to make a file name match an id
<p>here is my code</p>

<pre><code>&lt;div id="lara"&gt;&lt;a href="http://anywhere.com/work/lara.jpg"&gt;some crap&lt;/a&gt;&lt;/div&gt;

&lt;div id="jerk"&gt;&lt;a href="http://anywhere.com/work/jerk.jpg"&gt;some crap&lt;/a&gt;&lt;/div&gt;

&lt;div id="yessir"&gt;&lt;a href="http://anywhere.com/work/yessir.jpg"&gt;some crap&lt;/a&gt;&lt;/div&gt;
</code></pre>

<p>basically i'm wondering if there is a way to replace the filename (of the image) with some php that will dynamically add the id of the parent div in its place.</p>

<p>why you ask? i have several links like this where the id matches the filename, and i feel as though i should not have to manually type each file name in. I believe i've seen this done in ASP, but am not sure what the method is called, or if it's possible in php. </p>

<p>help! </p>
