1
In PHP, what is the fastest and most efficient way to read the amount of files present in a given directory.
For example, I want the demo below to return 3
.
pasta/
index.php
dev.php
.htaccess
outra_pasta/
I mean, I want you to count only the files from a folder, ignoring the folders that are inside it.