我想按照自定义顺序对数组中的dir列表进行排序。 我曾尝试使用usort,但没有得到想要的结果。 我还想让你解释在这里使用的$ a和$ b。 $dir = '/tmp';
$dir_list=scan_dir($dir);
//now this $dir_list array for the sake of this example contains the following eleme
我正在对捷克(和其他)字符进行排序排序。我写了一个比较函数,但是strstr有一个问题: Warning: strstr() [function.strstr]: needle is not a string or an integer in ...
而第二个问题是它没有正确比较它。我检查了usort手册和一些例子,认为它应该没问题,但有些问题是错误的。 我也检查字符串$ a-> getJme