Here\'s my question for today. I\'m building (for fun) a simple templating engine. The basic idea is that I have a tag like this {blog:content} and I break it in a method an
What about get_class_vars ?
class Blog { public static $template = array('content' => 'doodle'); } Blog::$template['content'] = 'bubble'; $class = 'Blog'; $action = 'content'; $values = get_class_vars($class); echo $values['template'][$action];
Will output 'bubble'