开发者

Sorting an array arbitrarily in cakephp

开发者 https://www.devze.com 2023-02-03 16:03 出处:网络
I have an array which is dynamic, and key and values开发者_Python百科 are displaying in order if they are set.I want to display keys of this array in my own order, What kind of condition must I write

I have an array which is dynamic, and key and values开发者_Python百科 are displaying in order if they are set. I want to display keys of this array in my own order, What kind of condition must I write in this case?


Take a look at the Core Utility Libraries, namely the sort() method of the Set class. Check for more info the cookbook.

0

精彩评论

暂无评论...
验证码 换一张
取 消