名字空间 | |
| namespace | Core |
函数 | |
| array_remove_empty (&$arr, $trim=true) | |
| array_col_values (&$arr, $col) | |
| array_to_hashmap (&$arr, $keyField, $valueField=null) | |
| array_group_by (&$arr, $keyField) | |
| array_to_tree ($arr, $fid, $fparent= 'parent_id', $fchildrens= 'childrens', $returnReferences=false) | |
| tree_to_array (&$node, $fchildrens= 'childrens') | |
| array_column_sort ($array, $keyname, $sortDirection=SORT_ASC) | |
| array_sortby_multifields ($rowset, $args) | |
| array_remove_empty | ( | &$ | arr, | |
| $ | trim = true | |||
| ) |
| array_col_values | ( | &$ | arr, | |
| $ | col | |||
| ) |
| array_to_hashmap | ( | &$ | arr, | |
| $ | keyField, | |||
| $ | valueField = null | |||
| ) |
| array_group_by | ( | &$ | arr, | |
| $ | keyField | |||
| ) |
| array_to_tree | ( | $ | arr, | |
| $ | fid, | |||
| $ | fparent = 'parent_id', |
|||
| $ | fchildrens = 'childrens', |
|||
| $ | returnReferences = false | |||
| ) |
| tree_to_array | ( | &$ | node, | |
| $ | fchildrens = 'childrens' | |||
| ) |
| array_column_sort | ( | $ | array, | |
| $ | keyname, | |||
| $ | sortDirection = SORT_ASC | |||
| ) |
根据指定的键值对数组排序
| array | $array 要排序的数组 | |
| string | $keyname 键值名称 | |
| int | $sortDirection 排序方向 |
| array_sortby_multifields | ( | $ | rowset, | |
| $ | args | |||
| ) |
1.5.3