I am using codeigniter, and when selecting from the MySQL DB, an integer, I get a string, like "1", and I want it to return 1.
Here is a solution to this problem, using PDO: How to get numeric types from MySQL using PDO?
I don't know how to apply it to my situation, using Codeigniter 3, and PHP 7 (it uses the mysqli driver)
PHP type casting is too slow for me, Here is a post about it (so please don't suggest doing this): PHP - Recursive in place replacing of strings to numbers takes too long