1 pointYou have to scroll down to the Strict Typing section to see that PHP will coerce by default. So the "int" hint does what you want.
1 pointCan you explain better what you mean by "changed database"? A database is a set of tables of which your server/account may have several. Are you talking about a chang e to a single table? How do you tell if a table has been changed? Query every single record and compare it to something saved?
1 pointYou could still write to your database. But at the same time to write to a json file or some other flat file format so that you know it's changed. Then instead of querying the database to find out if the database has changed look at your file.
1 pointFirst step is to logs the contents of $data somewhere so you can look at what is in it.
This leaderboard is set to New York/GMT-04:00