Skip to content

Instantly share code, notes, and snippets.

@fabiocicerchia
Created August 30, 2012 09:46
Show Gist options
  • Save fabiocicerchia/3524994 to your computer and use it in GitHub Desktop.
Save fabiocicerchia/3524994 to your computer and use it in GitHub Desktop.
PHP - Fetch all the mysqli results (one line of code)
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