Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199901

Re: [PHP3] strstr From: Rasmus Lerdorf (rasmus <email protected>)
Date: 01/30/99

> Guess I'm still ingrained by 10 years of Lisp hacking to just expect the
> needle to come first. But I'm typing the right order in my code now, so at
> least my fingers now know which is which. :-)

Yeah, it can be tricky. I followed C's conventions for these string
functions since they do exactly the same thing as their C equivalents. I
think the confusion is that with the regex functions the pattern to be
matched comes first. Not sure why I did that, but I am sure there was
some logic behind it. This stuff dates all the way back to PHP1 many
years ago and it has just propogated through the various versions.

-Rasmus

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev-list-admin <email protected>