PHPverse 2025

Voting

: three plus two?
(Example: nine)

The Note You're Voting On

anagai at yahoo dot com
12 years ago
This will delete all files in a directory matching a pattern in one line of code.

<?php array_map('unlink', glob("some/dir/*.txt")); ?>

<< Back to user notes page

To Top