One liner for simple fetch as associative array #53

wants to merge 1 commit into


None yet

1 participant


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