public function encode_php_tags($str) { return str_replace(array('<?', '?>'), array('<?', '?>'), $str); }