Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下代码:
$result = $pdo->query("SELECT * FROM t_user"); print_r($result);
print_r 的结果是一个关联的值数组。我希望它是一个数值数组。我该怎么做呢?
我希望:
$numeric_array = $result->fetchAll(PDO::FETCH_NUM);
应该给你你正在寻找的数值数组。