Main.php
Download
<?php $string="John working in TCS"; $str_into_arr = explode(" ", $string); $str_into_arr_count = count($str_into_arr); for ($i = 0; $i <= $str_into_arr_count - 1; $i++) { $arr_str = str_split($str_into_arr[$i]); $stlen = strlen($str_into_arr[$i]); for ($j = $stlen - 1; $j >= 0; $j--) { echo $arr_str[$j]; } echo ' '; } ?>
nhoJ gnikrow ni SCT