-
What will be the output of the following PHP code ?
<?php
function fun()
{
$EmailId1 = "Interview@Mania.com";
$EmailId2 = strstr($EmailId1, '@');
echo $EmailId2;
}
fun();
?>
-
- Interview@Mania.com
- Error
- Nothing
- @Mania.com
- None of these
Correct Option: D
The strstr() function searches for the first occurrence of a string inside another string.