Hi,
from 4.3.0 it will be ok to use strcspn(), atm (int 4.2.3) it has 2 params.
>From 4.3.0 it has up to four params.
It the second pair is like in substr(). Start index can be given, or even
start index and how much chars to be checked.
The same behavior is true and for strspn() (starting 4.3.0) b
There are many ways to do it, but everything requires a manipulation to
the string. strrev() would not only require the entire string to be
swapped around, but you'd also have to recompute the string position to
count from. The best way as it stands (that I see) is to slice the array
then use strrp
Why couldn't you just strrev() the string and then strpos() for it?
Mike
--- Original Message ---
From:Monte Ohrt <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date:13 Nov 2002 16:02:54 -0600
Subject: [PHP-DEV] strpos() suggestion
Hi,
I had a lit
The reason the functions are the way they are is because they directly
mirror the underlying C functions. strrpos() calls strrchr() directly.
But yes, some sort of new php_memnstr() based string searcher could
probably be written.
-Rasmus
On 13 Nov 2002, Monte Ohrt wrote:
> Hi,
>
> I had a litt