One liner for simple fetch as associative array #53

Closed
wants to merge 1 commit into
from

Projects

None yet

1 participant

@gabrielhora

A useful method for creating APIs when you need to use json_encode on database results, this would facilitate the process. One could simply call json_encode($result->fetchAssoc()) instead of building the array by hand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment