2007年3月31日
摘要: 1,在函数中,传递数组时使用 return 比使用 global 要高效,比如
function userloginfo($usertemp)
{
$detail=explode("|",$usertemp);
return $detail;
}
$login=userloginfo($userdb); 比
function userloginfo($usertemp)
{
global $detail;
$detail=explode("|",$usertemp);
}
userloginfo($userdb); 要高速;
阅读全文
posted @
2007-03-31 01:04 鱼有所思 阅读(324) |
评论 (0) |
编辑 收藏