I use mamp for local development. There is no problem with the data taken out from the database. The database is defined as a numerical type and the returned value is also a numerical type.
For example: id: 35
But when I deployed it to the server, using centos nginx php, I found that all the data returned by the database were strings.
For example: id: "35"
Excuse me, do you need to configure it somewhere on the server? Thank you~
If you use a framework, such as thinkphp, there is an attribute $type in the model configuration, you can customize the returned data type, corresponding to setFetchMode() in PDO