-
What will be the output of the following PHP code?
<?php
$contact = "inter0view@mania.com";
$contact = str_replace("0","@",$contact);
echo "Contact to the Interview Mania web designer at $contact.";
?>
-
- Error
- Nothing
- Contact to the Interview Mania web designer at inter@view@mania.com.
- Contact to the Interview Mania web designer at inter0view@mania.com.
- None of these
Correct Option: C
The str_replace() function case sensitively replaces all instances of a string with another.