i have had separate variables in a config file, such as:
$admin_notify_delete = 1;
$admin_notify_modify = 1;
$user_notify_add = 1;
$user_notify_modify = 1;
$record_notify_add = 0;
$record_notify_modify = 0;those variables are always in memory and available.
i was thinking about changing to something like
then when i needed to test, i could use something like
if ($notify) { do something, notify admin delete }
which would be more efficient? or is there a better way? thanks!
Code:
$admin_notify_add = 1; $admin_notify_delete = 1;
$admin_notify_modify = 1;
$user_notify_add = 1;
$user_notify_modify = 1;
$record_notify_add = 0;
$record_notify_modify = 0;
i was thinking about changing to something like
Code:
$db_notify = (1,1,1,1,1,0,0)Code:
my ($notify) = (split (/\,/, $db_notify))[1]; if ($notify) { do something, notify admin delete }
which would be more efficient? or is there a better way? thanks!