21,886
社区成员
发帖
与我相关
我的任务
分享
function getUser($userall, $pid, $self = 0) {
$pid = intval($pid);
$result = array();
if($userall)
foreach($userall as $k=>$v){
if($v['pid']==$pid){
$result[] = $v;
}
}
if($self) {
if(isset($userall[$pid])){
$result = array_merge($userall[$pid],$result);
}
}
return $result;
}