ExamVeda
Login
Home
This question belongs to PHP Regular Expressions
Regular Expressions
?

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.";
?>

Answer & Solution
Correct Answer: Option C
The str_replace() function case sensitively replaces all instances of a string with another.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.