B.10 strrpos( ) Uses the Entire Needle

 <  Day Day Up  >  

B.10 strrpos ( ) Uses the Entire Needle

In PHP 4, strpos( ) uses an entire string as a needle, whereas strrpos( ) limits the needle to a single character. If you pass strrpos( ) a string of more than one character, it silently uses only the first character.

In PHP 5, strrpos( ) and strripos( ) now behave identically to strpos( ) , in that they find strings instead of just the first character.

 <  Day Day Up  >  


Upgrading to PHP 5
Upgrading to PHP 5
ISBN: 0596006365
EAN: 2147483647
Year: 2004
Pages: 144

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net