Re: How does this code work?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jul 2, 2012, at 22:15, "Jim Lucas" <lists@xxxxxxxxx> wrote:

> I think you missed something here...
>
> The above function uses strtr() not strstr()

Wow. I knew there had to be a simple, logical explanation (there was), that it would likely be one of those stupid things that I'd spot in two seconds the next morning (it was). That didn't stop me, however, from spending the last few hours hashing it over in the back of my mind, trying to figure out what magical power could make strstr() return content that is not in the haystack.

I feel like an idiot now, but at the same time, I am greatly relieved that all is right with the world, that the logic I've grown so accustomed to in thirty years of programming had not gone to voodoo. Thank you for that :-).

Hmm, I wonder if those thirty years are having a different sort of impact on me, in the form of decaying eyesight....

--
Bob Williams

Notice: This communication, including attachments, may contain information that is confidential. It constitutes non-public information intended to be conveyed only to the designated recipient(s). If the reader or recipient of this communication is not the intended recipient, an employee or agent of the intended recipient who is responsible for delivering it to the intended recipient, or if you believe that you have received this communication in error, please notify the sender immediately by return e-mail and promptly delete this e-mail, including attachments without reading or saving them in any manner. The unauthorized use, dissemination, distribution, or reproduction of this e-mail, including attachments, is prohibited and may be unlawful. If you have received this email in error, please notify us immediately by e-mail or telephone and delete the e-mail and the attachments (if any).

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux