Could someone fill in the blank. I need to call a static function on a class. Do I need to use eval here?
// Some settings require function calls
$switch = array ('random_image' => 'Splashpage::get_random_image()', 'splash_photos_count' => 'Splashpage::count_splash_photos()');
foreach($switch as $key => $function) {
if ($name == $key) {
return ... $function
}
}