Sorting multidim array: prioritize if column contains substring, then order by a second column

前端 未结 6 690
情歌与酒
情歌与酒 2020-11-27 22:53

I am currently creating a sorting method that consists of values from an mysql query.

Here\'s a brief view of the array:

    Array
    (
        [0]          


        
6条回答
  •  执念已碎
    2020-11-27 23:24

    You might consider array_walk and array_walk_recursive and array_map, which when combined together maybe to get to doing what you want to do.

提交回复
热议问题