28 Sep 07
function transform($text) { preg_match_all(“/[tex](.*?)[\/tex]/si”, $text, $matches); for ($i = 0; $i < count($matches[0]); $i++) { $position = strpos($text, $matches[0][$i]); $thunk = $matches[1][$i]; $hash = md5($thunk); $full_name = $this->CACHE_DI