Syntax of strrev() function and Usage:
strrev(string)
string ->The string to be reversed.
strrev("BAJARANGISOFT")
echo strrev("BAJARANGISOFT")
<?php
echo strrev("BAJARANGISOFT");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>PHP strrev function</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<div class="text-center">
<h1>PHP strrev() Function</h1>
</div>
<br>
<h2>The strrev() function reverses a string.</h2>
<div class="well">
<?php
echo "<h2>".strrev("BAJARANGISOFT")."</h2>";
?>
</div>
<br>
</div>
</body>
</html>