new array function names
| From: | Monte Ohrt | Date: | Sat, 05 Jun 1999 22:14:06 +0000 |
| Subject: | new array function names | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-1302@lists.php.net to get a copy of this message | ||
Andrey has just submitted some new array functions to PHP.
Question is, should these function names remain:
push()
pop()
shift()
unshift()
slice()
splice()
or should we follow the convention:
array_push()
array_pop()
array_shift()
array_unshift()
array_slice()
array_splice()
My thoughts:
These will most likely be relatively widely used PHP functions,
so I kind like them the way they are, easy to type and remember.
And they match the perl function name counterparts,
if that has any bearing.
Other thoughts?
Monte
andrey wrote:
>
> Date: Saturday June 5, 1999 @ 16:43
> Author: andrey
>
> Update of /repository/php4/ext/standard
> In directory php:/tmp/cvs-serv6114/ext/standard
>
> Modified Files:
> basic_functions.c basic_functions.h reg.c
> Log Message:
> Added push(), pop(), shift(), unshift(), splice(), and slice() array functions.
> The first 5 work like their Perl counterparts. slice() returns a chunk of the array
> specified by offset and length arguments.
>
> Backport to PHP3 and docs will be coming soon.
>