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
PHP's default library for MySQL doesn't have any options of this kind. Use type casting like (int) or intval, (float) etc