Q. What is the result of the following PHP code?
Code:
<?php
$mail = "admin@example.com";
$mail = str_replace("a","@",$mail);
echo "Contact me at $mail.";
?>
β
Correct Answer: (A)
Contact me at @dmin@ex@mple.com.
Explanation: The built-in function The str_replace() replaces some characters with other characters in a string.