Req #67915 [NEW]: Improve strrchr

From: Date: Wed, 27 Aug 2014 14:14:32 +0000
Subject: Req #67915 [NEW]: Improve strrchr
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187295@lists.php.net to get a copy of this message
From: contact at mathiasstrasser dot com Operating system: All PHP version: 5.6.0RC4 Package: *General Issues Bug Type: Feature/Change Request Bug description:Improve strrchr Description: ------------ 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 ) ) -- Edit bug report at https://bugs.php.net/bug.php?id=67915&edit=1 --

« previous php.bugs (#187295) next »