63 066
Assignments Done
99,1%
Successfully Done
In July 2018

Answer to Question #6793 in AJAX | JavaScript | HTML | PHP for Lucy

Question #6793
Write PHP code that reads a string and prints an inverse string.
Expert's answer
Here is the code (file invert.php):

<?
$str = $_REQUEST[string];
$str = strrev($str);
echo($str);
?>

and here is the form that calls this script:

<form action=invert.php>
& lt;input type=text name="string" size=30 value="Input your string">

<input type=submit value="INVERT">
</form>

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions