Possible Duplicate:
Access array returned by a function in php
该法典:
$cnt = mysql_fetch_row(mysql_query("SELECT FOUND_ROWS()"))[0]
给出错误:
Parse error: syntax error, unexpected [ in index.php on line 117
抽样:
$cnt = (mysql_fetch_row(mysql_query("SELECT FOUND_ROWS()")))[0]
该法典:
$cnt = mysql_fetch_row(mysql_query("SELECT FOUND_ROWS()"));
$cnt = $cnt[0];
工作罚款。
这里的情况如何?