PHP String Handling Functions

Finding String Length

 
      <?php
      $name="Satish";
      echo strlen($name);
      ?>
    
Output

Finding String Word Count

 
      <?php
     $name="Satish is not good at PHP";
     echo str_word_count($name);
     ?>
    
Output

Finding Reverse of a String

 
      <?php
      $name="Satish";
      echo strrev($name);
      ?>
    
Output