【文件属性】:
文件名称:DataList:查询和排序 PHP 数组
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-29 17:07:12
PHP
数据列表
PHP 数组的基本查询和排序。
require_once("DataList.php");
$testArray = array(
array('name'=>'Anna','age'=>22,'owns'=> array('type'=>'furniture','label'=>'chair')),
array('name'=>'Bill','age'=>12,'owns'=> array('type'=>'fruit','label'=>'apple')),
array('name'=>'Cedric','age'=>33,'owns'=> array('type'=>'furniture','label'=>'sofa'))
);
$test = new DataList($testArray);
基本排序
$people = $test->sort('n
【文件预览】:
DataList-master
----demo.php(594B)
----README.md(3KB)
----DataList.php(5KB)