Thursday 6 March 2014

Use of String function

Octal Enterprises 

<?php
      echo substr("Octal enterprises",0,18)."<br>";
           echo strtr("Octal Enterprises","oE","Oe");
                 $arr = array("Octal" => "Hello", "Enterprises" => "Friends");
                        echo strtr("Octal Enterprises",$arr);
                              $firstName = 'Octal Enterprises';
                                    $greeting = 'Hello';
                                    echo $greeting . ' ' . $firstName . '!';
                              echo strlen("Octal Enterprises");
                 echo strrchr("Octal Enterprises! Software Development Company!","Octal");                            
echo strrpos("Octal Enterprises! Software Development Company !","!");                                               
          echo strtoupper("octal enterprises!");
  ?>      
Keep Connected With Octal Enterprises And learn programming . . .