Skip to content
Related Articles

Related Articles

Improve Article

Web technologies Questions | PHP Quiz | Set-2 | Question 4

  • Last Updated : 20 Sep, 2021
Geek Week

What is the output of the following code?

<?php
$value="GeeksForGeeks";
echo strrev("$value");
?>
(A) skeeGroFskeeG
(B) skeeGroFskeeO
(C) skeeGorFskeeG
(D) skeeForFskeeG


Answer: (A)

Explanation: The strrev is used to reverse the string in PHP so after reversing the string in PHP the value is skeeGroFskeeG.Hence echo print the value.

Quiz of this Question
Please comment below if you find anything wrong in the above post
My Personal Notes arrow_drop_up
Recommended Articles
Page :