php3-list | 199901
Date: 01/31/99
- Next message: Christer Lindh: "[PHP3] split and keep delimiters"
- Previous message: Joey Smith: "Re: [PHP3] how to generate a complete functions..."
- In reply to: Rasmus Lerdorf: "Re: [PHP3] strstr"
- Next in thread: Christer Lindh: "[PHP3] split and keep delimiters"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 21:21 1999-01-30 -0500, Rasmus Lerdorf wrote:
>> 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.
>
And implode/explode are quite more confusing - they are so related but
explode has the separator first, implode has it last.
Or was it the other... I "always" get them wrong. I should write the order
for them both down on a Post-It and stick to the screen....
-- | Christer Lindh, | Homepage : http://www.homenet.se/clindh/ | Stockholm, Sweden | Utsidan : http://www.utsidan.se/ | clindh <email protected> | Abbey's Web: http://www.utsidan.se/abbey/-- 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: Christer Lindh: "[PHP3] split and keep delimiters"
- Previous message: Joey Smith: "Re: [PHP3] how to generate a complete functions..."
- In reply to: Rasmus Lerdorf: "Re: [PHP3] strstr"
- Next in thread: Christer Lindh: "[PHP3] split and keep delimiters"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

