PHPDOC | Search the list of possible types for @param


I want to know the valid types for the @param and @return of phpdoc
I also want to know if the type “character” is correct.


 * @param string $text
 * @return character
function get_letter($text)
    return substr($letter,0,1);

Thank you :slight_smile:
And no, “character” is not a valid type. PHP has no “char” type, only string.