# PHP 2D array to Flash

**URL:** <https://forum.kirupa.com/t/php-2d-array-to-flash/150841>\
**Category:** programming\
**Created:** [June 10, 2005, 8:59pm UTC](https://forum.kirupa.com/t/php-2d-array-to-flash/150841 "2005-06-10T20:59:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrthad](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@andrthad](https://forum.kirupa.com/u/andrthad)\
**Post date:** [June 10, 2005, 8:59pm UTC](https://forum.kirupa.com/t/php-2d-array-to-flash/150841/1 "2005-06-10T20:59:41Z")

</div>

Hi All,

Working on a problem. I want to look at a server folder sort the files by date modified and then read the top 10 recent files into Flash. I know how to use loadVars to get the files names into Flash. How do I use PHP to sort the files based on modified date and select the 10 most recent files?
