..
Strrpos function finds the last occurrence of a character within a string. Its syntax is as follows:
strrpos (dove_cercare, cosa_cercare [starting point])The indication of a starting point (integer numeric value) is optional.
$ Position = strrpos ("mrwebmaster", "r");
echo $ position;
will produce the following output:
10If the search is successful the function returns false.
| |
Linux (Course)
Complete guide to open-source system. From 49 €. |
| |
MySQL (Course)
Management of open-source database. From 39 €. |
| |
PHP (Course)
Full course for creating dynamic Web sites. From 49 €. |