$ext = substr( $f, 0, strpos( $f, "/" )); return strrev( $ext ); } ?>