I\'m wondering if there is a way to call variable functions with namespaces. Basically I\'m trying to parse tags and send them to template functions so they can render html`
This will also work, no need for call_user_func, just use the Variable functionsDocs feature:
call_user_func
require_once 'template.php'; $ns = 'template'; foreach (array('javascript', 'script', 'css') as $tag) { $ns_func = $ns . '\\' . $tag; echo $ns_func(); }