[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-general
Subject:    Re: [PHP] Improve strrchr
From:       Aziz Saleh <azizsaleh () gmail ! com>
Date:       2014-08-27 14:05:48
Message-ID: CAPJtNhXcP6D3VrpnWb=q+yhJaP9jTOYjB12Erz9AYmc8X-TE7w () mail ! gmail ! com
[Download RAW message or body]


On Wed, Aug 27, 2014 at 9:44 AM, <contact@mathiasstrasser.com> wrote:

> 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
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
You can add bugs and requests (improvement or feature wise) on here:

https://bugs.php.net/search.php?search_for=&boolean=0&limit=30&order_by=&direction=DES \
C&cmd=display&status=Open&bug_type=Feature%2FChange+Request&project=All&php_os=&phpver=&cve_id=&assign=&author_email=&bug_age=0&bug_updated=0




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic