PHP String strrev() and str_shuffle() Function

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>

 

courses

Leave a Reply

Your email address will not be published. Required fields are marked *