• PHP Video Tutorials

PHP - Function Strrchr



Syntax

string strrev ( string $string )

Definition and Usage

It is used to reverse a string

Return Values

It returns reversed string

Parameters

Sr.No Parameters & Description
1

string

It specifies the string to be reversed

Example

Try out the following example

<?php
   echo strrev("sairamkrishna");
?>

This will produce following result −

anhsirkmarias
php_function_reference.htm
Advertisements