<?php function reverse($str) { if (strlen($str) < 2) { return $str; } println($str[0]); return reverse(substr($str, 1)) . $str[0]; } $txt = "Thomas"; echo reverse($txt);
You have javascript disabled. You will not be able to edit any code.