I was wondering if there is a simple way of checking a 'secret code' in PHP without connecting to a database.
For example - a candy company may advertise to their customers 'enter the code on your candy package online to enter the competition' with the code being 4470 (for example). Is there a way that I could do this, but for only one code? I don't want this validator to validate multiple codes, I want it to just validate one individual code.
Is there a way to do this? Preferably without a database connection, but if its required, that's okay.