$theme = getPreference("theme", getCurrentUser());
$timezone = getPreference("timezone", 123);
$preferences = array("theme", "language", "notifications"); $values = array(); foreach ($preferences as $preference) { $values[$preference] = getPreference($preference, getCurrentUser()); }The package library that contains the getPreference function may vary depending on the application or framework being used. It could be included in a custom library or part of a popular PHP framework like Laravel, CodeIgniter, or Symfony.