Is there any need to use fetch_object or fetch_array?
问题 I recently found out that I can print results from database without using mysqli_fetch_object function. So for example: Let's say we have simple sql select statment which would be executed by using something like this: $conn = mysqli_connect('localhost', 'root', '', 'example_db'); $result = mysqli_query($conn, "SELECT * FROM users"); Next step would be something like this: while($row = mysqli_fetch_object($result)) echo $row->username Where username is corresponding column name in table of