Global variables are prefixed by $, example: $cars
But What if your application goes down? The global var is reinitialized to its default value. I would recommend a database, eventually with caching if you want to save on performances.
You could cache your database values in you $cars
variable
That's my personal approach: database + cache for records that being updated not often. cache is cleared when a change is made in the table, and cache is created (with a db request) during first fetch of the record.
As a result its all good cause you have the flexibility to change the records sometimes, no problem arise when the server goes down, or with multi-threading, and the cache permit not to kill performances