Closed as not planned
Description
Description
The following code:
<?php
// If using an SQL statement like:
$sql = "SELECT * FROM"...
// then you can assign array variables just fine as pulled from your $result->fetch_assoc() in your while loop.
// However if your SQL is like:
$sql = "SELECT my_var1 and my_var2 FROM"...
Resulted in this output:
// then using print_r() on the returned structure shows:
//Array
//{
// [my_var1 and my_var2] => 0
//}
But I expected this output instead:
// normal array structure as shown with print_r()
PHP Version
php ver 8.2.28
Operating System
Debian 12 (bookworm)