Re: Adding a more logical string slicing function to PHP
| From: | Martin Jansen | Date: | Wed, 30 Mar 2011 19:42:54 +0000 |
| Subject: | Re: Adding a more logical string slicing function to PHP | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-51756@lists.php.net to get a copy of this message | ||
On 30.03.11 21:36, Dan Birken wrote:
> As for adding other string functions, I agree, I think there are a lot of
> them that would be great to add. starts_with & ends_with for sure.
Both str_startswith and str_endswith have been suggested in the past:
http://marc.info/?t=121647230100001&r=1&w=2
I recently got around to merge them into a largely unfinished extension
so they are archived somewhere safe: https://github.com/mj/php-ext-str
- Martin