php3-list | 199901
Date: 01/30/99
- Next message: Richard Lynch: "[PHP3] Debugging messages"
- Previous message: Richard Lynch: "Re: [PHP3] strstr"
- In reply to: Richard Lynch: "Re: [PHP3] strstr"
- Next in thread: Christer Lindh: "Re: [PHP3] strstr"
- Reply: Christer Lindh: "Re: [PHP3] strstr"
- Reply: Christer Lindh: "[PHP3] split and keep delimiters"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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>
- Next message: Richard Lynch: "[PHP3] Debugging messages"
- Previous message: Richard Lynch: "Re: [PHP3] strstr"
- In reply to: Richard Lynch: "Re: [PHP3] strstr"
- Next in thread: Christer Lindh: "Re: [PHP3] strstr"
- Reply: Christer Lindh: "Re: [PHP3] strstr"
- Reply: Christer Lindh: "[PHP3] split and keep delimiters"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

