Created
August 30, 2012 09:46
-
-
Save fabiocicerchia/3524994 to your computer and use it in GitHub Desktop.
PHP - Fetch all the mysqli results (one line of code)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for ($resultSet = array(); ($row = $result->fetch_object()) !== null; array_push($resultSet, $row)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment