function a ($i){ if($i>1,$sum=0,$i++){ sum=a($i-1)+sum } } a(5) 转载于:https://blog.51cto.com/11116201/1752362