跳到主要内容

push

将元素加入堆中,并保持堆的性质

声明

void push(array arr, mixed item, function predicate = nil)

参数

参数名描述
arr
item

返回值

使用方式

返回文档