standardize php builtin functions
| From: | Abdul Haq Sheikh | Date: | Sun, 18 Jul 2021 09:08:28 +0000 |
| Subject: | standardize php builtin functions | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-115462@lists.php.net to get a copy of this message | ||
Hello Internals,
PHP has built in functions for string, array and math etc. But some string
and array functions start with Str_* and array_* but not all. If we
standardize php builtin functions so all string functions start with str_*,
and all array functions start with array_* and all math functions start
with math_*, it will provide a lot of help to PHP developers. If we are
using VS Code, Sublime text, PHPStorm etc, developers will simply write
str_ or array_ or math_ and IntelliSensewill popup all string, array and
math functions. There will be no BC break, because math_floor() will be an
alias of floor() and array_asort() will be an alias of asort(),
file_basename will be an alias of basename().
- Prefix reaming string functions with str_*
- Prefix reaming array functions with array_*
- Prefix math functions with math_*
- Prefix file functions with file_*