|
|||||||
|
|
strrposDescriptionint strrpos ( string haystack, string needle [, int offset])Returns the numeric position of the last occurrence of needle in the haystack string. Note that the needle in this case can only be a single character in PHP 4. If a string is passed as the needle, then only the first character of that string will be used. If needle is not found, returns FALSE. It is easy to mistake the return values for "character found at position 0" and "character not found". Here's how to detect the difference:
If needle is not a string, it is converted to an integer and applied as the ordinal value of a character.
See also strpos(), strripos(), strrchr(), substr(), stristr(), and strstr(). | ||||||
|
|
|
Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account Document on this page is part of "Manuale PHP". See Index Page for more info about Authorship and Copyright. 1999-2009 Linuxinfor.com. No rights reserved. |