<?phpfunction md5_and_reverse($string) { return strrev(md5($string)); }$db = new PDO('sqlite:sqlitedb');$db->sqliteCreateFunction('md5rev', 'md5_and_reverse', 1);$rows = $db->query('SELECT md5rev(filename) FROM files')->fetchAll();?>