php call dynamic function by name code example
Example 1: php dynamic function call
public function view_all($building_post_id, $member_id = array());
//
$this->view_all($building_post_id); // CORRECT, no need pass default params
$this->view_all($building_post_id, 12); // CORRECT, pass default params
Example 2: dynamic function name php
$function = $prefix . '_custom_type_init';
if(function_exists($function)) {
$function();
}