$string = "SELAM"; $uzunluk = strlen($string); for ($i=($uzunluk-1) ; $i >= 0 ; $i--) { echo $string[$i]; }