RE: [PHP4BETA] new array function names
| From: | Colin Viebrock | Date: | Mon, 07 Jun 1999 14:44:51 +0000 |
| Subject: | RE: [PHP4BETA] new array function names | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-1358@lists.php.net to get a copy of this message | ||
> >or should we follow the convention:
> >
> >array_push()
> >array_pop()
> >array_shift()
> >array_unshift()
> >array_slice()
> >array_splice()
It takes longer to type, but I say we go with the above names.
Less ambiguity is better, IMHO, and I agree that some people
may have already written their own functions with names like
push(), pop(), etc.
If they wrote their own function called array_push(), then too
bad ... but I'd feel pretty sure that *our* array_push() will
be exactly what they needed anyway. :)
- colin