lmao i sat here looking at this line tihkning wtf lol and then i reailises you must of copied of a php highlighted post lool

$<span class="searchlite">bbcode</span> = '['.$this->tag.($this->attrib?'='.$this->attrib:'').($this->uid?':'.$this->uid:'').']';

should be
$bbcode = '['.$this->tag.($this->attrib?'='.$this->attrib:'').($this->uid?':'.$this->uid:'').']';

lol but yea your code is good but i prefer to keep my code as neat as possible and some rules i follow is trying not to use $array[0] or [1] etc also now using my registry system i can do stuff like

Registry::get('mysql')->query('SELECT * FROM settings')->rows;

the firs section Registry->get('mysql') will retrieve the object out of the registry array then you follow on to access the mysql class and run the query function and then as i use an stdClass i just call for the rows or row cound or just the single row... this is a real times saver :G

but yea good code dood