The conventional way to do it is to use multiline comments, and put it above the function definition. For example:
/*
 * This function does Foo.
 * It takes 1 argument: Bar, an integer meaning whatever
 * It returns true on success, and false on failure
*/
function Bar($Foo){ ...