#reverse a string

$s="string";
$s=reverse $s;
print  $s;