Wednesday, 14 January 2015

get reverse of a string

   $s = "appsmaven";
   echo $s

   echo "<br/>";
   for($i=7;$i>=1;$i--){
     
  //echo $i;
 // echo "<br/>";
  echo $s[$i];
 
   }

No comments:

Post a Comment