On Sat, 13 Aug 2005, Marco Tabini wrote:
Or maybe so that you don't have to look at the manual fifteen times a minute
so that you can remember whether the needle goes before the haystack in a
particular function or not.
I'm all for making this consistent all around.
Best way to get this done is propably to first come up
with a list of functions which are inconsistent?
And get a concensus over it. :)
This is the first one that comes to my mind:
int strpos (string haystack, mixed needle [, int offset])
Whenever I've used that, I've ALWAYS mixed the needle with haystack.
Same goes with every str* function, I guess..
--Jani
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php