PHP 5 oddity in Strrchr()

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!!

Comments are closed.

Categories
Archives
Links