I want to delete all png files from server where name start with pub_
<p>which is this that delete all png from our server but only those png that start with pub_. i don't know how to do this i were searching it on google and on stackoverflow all dy long but didn't find any help.</p>

<p>This is hwat i did so far</p>

<pre><code>$directory = "/home/html/domain.com/public/mydir/testDIR/";
$images = glob($directory . "*.png");
//print each file name
foreach ($images as $image)
{
 echo $image."&lt;br /&gt;";
}
</code></pre>

<p>it returns me all png including those with name pub_xyz.png, now i want to delete all of pub_xyz.png plz help me thanks.</p>
