/**
* Like end(),return the first element of an array
* @author Wilson Zeng
*/
function first($stack){
if(is_array($stack)){
reset($stack);
return current($stack);
}else{
return $stack;
}
}
posted on 2012-01-17 13:31  重生  阅读(105)  评论(0编辑  收藏  举报