When data is returned from MySQL, it is automatically returned as strings, regardless of the MySQL data type.
Is there any way to tell MySQL/PHP to maintain the data
in php, you can use ([type]) to make sure $something was integer , this help sql injection if you khow about it.
ex:
(int) $something;