I'm creating an array for user levels and want to make them secure by adding a secret 10 digit string to the end of each of the user levels in the array UserLevels. I'm using the code below but I can't seem to add a string to an array when using the PHP term define.
My code is below:
//Change the 10 digits of the $secret definition to a randomised string
$secret = '0000000000';
define('UserLevels', array(
'Owner'.$secret,
'Admin'.$secret,
'Staff'.$secret
));
I was going to make it hash / check the user levels to make them more secure then use something to check the hash later in each page.