?
What will be the output of the following PHP code?
What will be the output of the following PHP code?
<?php
$author = "nachiketh@example.com";
$author = str_replace("a","@",$author);
echo "Contact the author of this article at $author.";
?>
<?php
$author = "nachiketh@example.com";
$author = str_replace("a","@",$author);
echo "Contact the author of this article at $author.";
?>
Answer & Solution
Correct Answer:
Option
C
The str_replace() function case sensitively replaces all instances of a string with another.
Join the Discussion
Login to post a comment or share your explanation.
Login