I was just trying to design an object oriented PHP interface to handle basic CRUD* operations in a PostgreSQL Database, and i came up with the idea of using dynamic methods to call the stored procedures. I’ll try to explain what i did here, and how.
Continue reading “Using dynamic methods in your PHP Classes”
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”