The first thing that leaps out from your code is the example you were give uses push to add each item to the array whereas you just assign a different single element list to the array each time around. Also, consider using unlink to remove your files and check for success.
Cheers,
JohnGG
In reply to Re: Need help deleting *.bak files
by johngg
in thread Need help deleting *.bak files
by MikeDexter
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |