... array('test1 .php& apos;, 'test10 .php& apos;, 'test11 .php& apos;, 'test2 .php& apos;); natsort($tests); The elements are now ordered: 'test1 .php& apos;, 'test2 .php& apos;, 'test10 .php& apos;, ... on for at http://www .php. net/for, foreach at http://www .php. net/foreach, while at http://www .php. net/while, each( ) at http://www .php. net/each, reset( ) at http://www .php. net/reset, and array_map( ... http://www .php. net/sort, asort( ) at http://www .php. net/asort, natsort( ) at http://www .php. net/natsort, natcasesort( ) at http://www .php. net/natcasesort, rsort( ) at http://www .php. net/rsort,...