Breaking

Followers

Tuesday, 14 November 2017

Reverse String Program in php

<?php

$string='shashank';
$length = strlen($string);
for ($i=($length-1) ; $i >= 0 ; $i--)
{
  echo $string[$i];
}
}
?>

No comments:

Post a Comment