Re: PHP 6.0 Wishlist
| From: | Jani Taskinen | Date: | Sun, 14 Aug 2005 01:50:12 +0000 |
| Subject: | Re: PHP 6.0 Wishlist | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-18024@lists.php.net to get a copy of this message | ||
On Sat, 13 Aug 2005, Sara Golemon wrote:
And this is why they're inconsistent to begin with. When I look at strpos() I think: strchr(char *, int) So the parameter ordering does make sense there (to me).This is the first one that comes to my mind:int strpos (string haystack, mixed needle [, int offset])
Yes, coming from a C background you would think like that.
But when you think about it with some logic (not women's logic :):
"I'm looking for a character inside a string."
Thus: strpos(needle, haystack) is the correct way (tm) =)
--Jani