wordpress123
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment