PHP String strrev() and str_shuffle() Function
by TechVidvan Team
Program 1
<html>
<head><title>String in PHP Application</title>
<body>
<pre>
<center>
<?php
// $mystr="ravi";
// //echo $mystr."<br>";
// $newstr=strrev($mystr);
// if(strcasecmp($mystr,$newstr)==0)
// echo "String is palindrome";
// else
// echo "String is not palindrome";
// // echo $newstr;
// //strrev()
//str_shuffle()
$mystr="AYN23PO8C";
$newstr=str_shuffle($mystr);
echo $newstr;
?>
</pre>
</center>
</body>
</html>
Tags: PHPphp practicalphp programphp reverse and shuffle functionphp strrev and str_shuffle functionreverse and shuffle function in phpstrrev and str_shuffle function in php
TechVidvan Team
TechVidvan Team provides high-quality content & courses on AI, ML, Data Science, Data Engineering, Data Analytics, programming, Python, DSA, Android, Flutter, full stack web dev, MERN, and many latest technology.