I'm working on a script in PHP which presents documents that's stored within a directory tree.
My directory tree looks somewhat like this:
* mainfolder1
+ subfolder1
- subsubfolder1
- subsubfolder2
+ subfolder2
- subsubfolder3
- subsubfolder4
Within each subsubfolder
there is a file called data.dat
that contains a number
I want to create an array that sorts these directories based on the number in data.dat
Anyone who can help me?