Hi,
I know how to use variable variables, and I've been using them for quite some time now.
But here comes a time where I need to use variable functions.
I found a way to do that by using a temporary line like this:
$item_type can be "circuit", "access", etc...,
The function called is get_details_circuit(), get_details_access(), etc...
Here's the code:
$function = 'get_details_'.$item_type;
$details = $function($item_id);
The method above works well, but is there a way to write all of this in just one line?