<?php $string = "Php,Arrays,Mysql"; function backwards($input) { $str = $input; $revStr = array(); $str = explode(",", $str); for ($x = 0; $x < count($str); $x++) { array_push($revStr, strrev($str[$x])); } return implode(',', $revStr); } $result =backwards($string); echo $result; ?>
You have javascript disabled. You will not be able to edit any code.