- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.6
- Parse error: syntax error, unexpected '(string)' (string) (T_STRING_CAST), expecting '(' in /in/gjCMZ on line 2
Process exited with code 255.
<?php
function answer (string) {
return string.split("").reverse().join("");
}
answer("syawyna sresol rof si qnittiuq");