The first one does not exist, unless you have a class that defines such a member function. The second one is explained in the PHP manual entry for [man]mysql_fetch_assoc/man.
That said, I suspect that you have the mysqli extension in mind instead, upon which $result->fetch_assoc() and mysqli_fetch_assoc($result) are equivalent except that the former is object based and the latter purely procedural.