Voting

: min(two, one)?
(Example: nine)

The Note You're Voting On

Anonymous
17 years ago
One note regarding checking for empty directories :
>>echo (count(glob("$dir/*")) === 0) ? 'Empty' : 'Not empty';
This does not work correctly on Linux.
The '.' and '..' will always be returned even if no files are present in the directory.

<< Back to user notes page

To Top