Improve strrchr

From: Date: Wed, 27 Aug 2014 13:44:28 +0000
Subject: Improve strrchr
Groups: php.general 
Request: Send a blank email to php-general+get-323799@lists.php.net to get a copy of this message
Hi, I would like to know if is that possible to add a new argument in a function strrchr ? To do the same things of strstr. strrchr ( string $haystack , mixed $needle [, bool $before_needle = false ] ) before_needle If TRUE, strrchr() returns the part of the haystack before the first occurrence of the needle (excluding the needle). Actually i'm forced to write: substr ( $haystack, 0, strrpos ( $haystack, $needle ) ) Thanks in advance, Mathias STRASSER

« previous php.general (#323799) next »