php dynamic function name code example
Example 1: PHP dynamic property name
$obj->{$field}
Example 2: 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 3: dynamic function name php
$function = $prefix . '_custom_type_init';
if(function_exists($function)) {
$function();
}