Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199901

Re: [PHP3] strstr From: Christer Lindh (clindh <email protected>)
Date: 01/31/99

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>