Archive for December, 2006

PHP 5 oddity in Strrchr()

Wednesday, December 20th, 2006

Just noticed that my PHP 5 mirrors the behaviour of php 4 in the functioning of strrchr.

string strrchr ( string haystack, string needle )

This function returns the portion of haystack which starts at the last occurrence of needle
 and goes until the end of haystack.

Like PHP4, only the first character of the needle is used instead of the whole string. Annoying and a reintroduced bug somewhere?

My PHP version is 5.1.2

Buggy, buggy, bug!!

Technorati Post

Wednesday, December 20th, 2006

Technorati Profile
No further use. 🙂

Your are browsing
the Archives of My Beloved PHP for December 2006.
Categories
Archives
Links