Write a PHP program to move the first two characters to the end of a given string of length at least two
<?php function test($s1) { return substr($s1, 2, strlen($s1)-2) . substr($s1, 0, 2); } echo test("Hello")."\n"; echo test("JS");
Sample Output:
lloHe JS
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer