Creating nice JSON strings on PHP

Hello everyone!

I spent some valuable time last night, trying to create a reliable algorithm to merge two arrays, so i can use PHP’s json_encode() for a simple logging class i’m writing, Loggy.

This morning, i found out that was unnecessary, turns out PHP’s array_combine() method could’ve got it all covered.

Continue reading “Creating nice JSON strings on PHP”