-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpf_rand_val.php
43 lines (40 loc) · 1.24 KB
/
pf_rand_val.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* Created by PhpStorm.
* User: 运营部
* Date: 2019/1/24
* Time: 14:30
*
*
* _ooOoo_
* o8888888o
* 88" . "88
* (| ^_^ |)
* O\ = /O
* ____/`---'\____
* .' \\| |// `.
* / \\||| : |||// \
* / _||||| -:- |||||- \
* | | \\\ - /// | |
* | \_| ''\---/'' | |
* \ .-\__ `-` ___/-. /
* ___`. .' /--.--\ `. . ___
* ."" '< `.___\_<|>_/___.' >'"".
* | | : `- \`.;`\ _ /`;.`/ - ` : | |
* \ \ `-. \_ __\ /__ _/ .-` / /
* ========`-.____`-.___\_____/___.-`____.-'========
* `=---='
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* 佛祖保佑 永无BUG 永不修改
*
*/
require __DIR__ . '/../vendor/autoload.php';
use pf\arr\PFarr;
$arr = [
['name'=>'TOP1','cid'=>0,'id'=>1],
['name'=>'TOP1','cid'=>1,'id'=>20],
['name'=>'TOP1','cid'=>0,'id'=>2],
['name'=>'TOP1','cid'=>2,'id'=>40],
['name'=>'TOP1','cid'=>2,'id'=>5],
];
PFarr::dd(PFarr::pf_rand_val($arr,2));