简单的问题。假设我运行以下命令:
$results = mysql_query("SELECT * FROM table");
如何在不执行 while 循环的情况下将 mysql 结果数组加载到 PHP 数组中?例子:
$mysql_results = array();
$results = mysql_query("SELECT * FROM table");
$mysql_results = mysql_load_all_results_into_array($results);
谢谢!