Calculate how many files
For loop is less than the total number of files
Take the file name and path in turn. Put in a two-dimensional array arr[0][0] put file name arr[0[1] Drop path
End of cycle
Reply to discussion (solution)
$path [] = ' images '; for ($i =0; $i
path is D:\tupian, where does the program add this path?
Take the jpg file under D:\tupian, and the JPG file in all subdirectories within D:\tupian
$path [] = ' D:\tupian ';
How did you learn to program? Not extrapolate?
"dirname ($v)", can this position be replaced with the absolute path with the file name?
don't know what you're talking about
$res [] = Array (dirname ($v), BA SENAME ($v));
In this sentence, dirname ($v), this path can become the path containing the file name,
contains the path of the file name, for example: D:/mulu/1.jpg Add the name of the filename
You just look at $v, you know?