chocie random filename in php
Posted on 2011-10-21
friends i hang out,
i have create files via php like :
my Question: i draw a random number between 1 and 10 and want to select the full name of the file or files random who got the number that i draw.
1- i draw the number 8
2- the system find 3 files that got the number 8 after "_" in the file name like those 3:
3- the system catch random one full name of the 3 files that include the number 8.