function get_postHtml($type){ $methodname='get_postHtml'.$type; /* could i use any php variable instead of 'get_postHtml' ? i tryed __FUNCTION__ but it returns the class name added */