PHP, JSON, Strings, Integers, Mysqlnd and Matching Environments
Here’s another instance of being wary when your development environment does not exactly match your production environment. In PHP, for the longest time, when you fetched records from a MySql database, every column, no matter the column type, would be returned as a string. Primary key “id” of 42, type integer? String. Column “pi” of […]