3 ms·
Does PHP have a limit on the length of a function name?
by grishka 4y ago
Does PHP have a limit on the length of a function name?
- cardanome 4y ago> Generally, such a limit is imposed by the threat of violence from other folks who interact with your code. https://stackoverflow.com/questions/4565805/is-there-a-limit-in-php-to-the-length-of-a-variable-name-or-function-name#4565829 https://stackoverflow.com/questions/4565805/is-there-a-limit... So no. Though funny side note, there is a historic reason that function names are so inconsistent in PHP: The length of the name of a function was used for hashing. So you wanted a to vary the length to achieve a roughly even distribution of lengths. https://news-web.php.net/php.internals/70691 https://news-web.php.net/php.internals/70691