AgerNic.com
Start write and run your php code online
HOME Editor | PHP Exemples | PHP Functions |
WEB TEMPLATES | EXAMPLES
PHP Tutorial
PHP strrchr() Function, run and write PHP code.

PHP strrchr() Function - online editor.

strrchr — Find the last occurrence of a character in a string

Syntax:
strrchr(string,char);
The strrchr() function finds the position of the last occurrence of a string within another string, and returns all characters from this position to the end of the string.

Example 1 Search a string for "day", and return all characters from this position to the end of the string:

<?php
echo strrchr("Have a nice day is a commonly
spoken expression.","day");
?>


Tags:
PHP strrchr() Function 32

PHP strrchr() Function

PHP Functons
PHP count() Function

PHP define() function

PHP empty() Function

PHP explode() function

PHP html_entity_decode() function

PHP htmlentities() function

PHP htmlspecialchars_decode() function

PHP htmlspecialchars() function

PHP implode() function

PHP isset() Function

PHP lcfirst() function

PHP ltrim() function

PHP md5() function

PHP print() function

PHP printf() function

PHP rtrim() function

PHP similar_text() function

PHP str_repeat() function

PHP str_replace() function

PHP str_split() function

PHP strcmp() function

PHP strip_tags() function

PHP strlen online function

PHP strrchr() Function

PHP strstr() function

PHP strtolower() function

PHP strtoupper() function

PHP substr() function

PHP trim() function

PHP ucfirst() function