in reply to A little help w/ stat() por favor...

You should get the 10th element of the list returned by "stat".
$mtime=(stat($files))[9];
I consider 1 to be returned just as a "flag" that there is an answer. ;) A very stupid explanation from me btw, sorry