title: How to get an integer from MySQL as integer in PHP?
body: <p>When data is returned from MySQL, it is automatically returned as strings, regardless of the MySQL data type.</p>
  
  <p>Is there any way to tell MySQL/PHP to maintain the data types (e.g. int), so if you query an int column, you get an integer in PHP instead of a string?</p>