PHPDOC | Search the list of possible types for @param

Hello,

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.

Example:

<?php
/**
 * @param string $text
 * @return character
 */
function get_letter($text)
{
    return substr($letter,0,1);
}

Thank you :slight_smile:

http://us1.php.net/manual/en/language.types.php
And no, “character” is not a valid type. PHP has no “char” type, only string.