- We need to find all files that match regex recursively
- Assume that file's content is only number
- Make sum of all numbers of this found files
- You can add new folder on any level inside
test-folder
- And create new count.txt file with your own number
- Run index.php and check that sum was changed
- Clone repository
git clone https://github.com/vit-gon/php-files-recursive-search.git
- Navigate to repository directory
cd php-files-recursive-search
- Open CMD and run index.php
php index.php
- You should see
[count.txt] | Sum: 10.100000
in the console