I need a code that deletes every file in a special folder with special name but every suffix.
For example:
sample.txt
sample.jpg
sample.pdf
sample.png
I work with Zend Framework. Has zend any tools for deleting files?
look on unlink function
<?php
$mask = "sample.*"
array_map( "unlink", glob( $mask ) );
?>