konakona
乞丐
UID 102176
精华
0
积分 -18
帖子 22
金钱 -18 喜悦币
威望 0
人脉 0
阅读权限 1
注册 2007-11-27
状态 离线
|
[广告]: q
m
請問我的這個錯誤是因為什么,另外這個函數怎么實現
<?php <? function foo(){ static $int = 0;// correct static $int = 1+2; static $int = sqrt(121); $int++; echo $int; } ?> 這是我在一個PHP愛好者博客里找到的代碼
可是運行總是出現錯誤
Parse error: syntax error, unexpected '+', expecting ',' or ';' in 4
|
|