Recursively cast to array in PHP
·
I recently ran into an issue where JSON encoding some objects in my code wasn’t working properly. After experimenting, I realized that casting everything to an array before JSON encoding…
·
I recently ran into an issue where JSON encoding some objects in my code wasn’t working properly. After experimenting, I realized that casting everything to an array before JSON encoding…
·
Lately, I’ve been using the command line a lot more often at work. I found two things hard about using the command line to interact with PHP files: Figuring out…
·
I was recently working on a pull request where I wanted to take an array of object IDs and convert that into a string to be used in a SQL…
·
I was working on something in Jetpack recently, and was mind-boggled when I came across a do…while( false ) loop. What confused me so much, is why even use the…
·
I was having a bit of trouble tracking down exactly where a method was getting called from today. Usually a search in my project directory will turn up the result…