How does one destructure a row from a mysqli_result? This pattern works with PDO, but I'd like to be able to use the same with mysqli.
<?php
$mysqli = new mysqli('', 'pdo', '123', 'pdo');
foreach ($mysqli->query("select uid, name from users") as [$uid, $name])
print("$uid: $name\n");
// PHP Warning: Undefined array key 0 on line 3
// PHP Warning: Undefined array key 1 on line 3