Using codeignite framework, PHP and mysql when I do a query all data retreived are typed as String. Maybe muy tables have got strings, integers... Bit if I return a JSON of the query rows, al values are String. Well, I can cast any value that I considerate that is a int, boolean, ... but this is a boilerplate conde that I want forget.
Is there any way to query data and receive the real type¿