Open In App

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

Like Article
Like
Save
Share
Report

What is the output of the below code snippets?

<?php    
 	$value=\"GeeksForGeeks\";    
 	echo strrev(\"$value\");      
?>

(A)

skeeGroFskeeG

(B)

skeeGroFskeeO

(C)

skeeGorFskeeG

(D)

skeeForFskeeG


Answer: (A)

Explanation:

strrev is used to reverse the string in PHP so after reversing the string in PHP the value is skeeGroFskeeG. 


Quiz of this Question
Please comment below if you find anything wrong in the above post


Last Updated : 20 Sep, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads