-
What will be the output of the following PHP code?
<?php
$url = "interview@mania.com";
echo ltrim(strstr($url, "@"),"@");
?>
-
- interview@mania.com
- interviewmania.com
- interview.com
- mania.com
- None of these
Correct Option: D
The strstr() function returns the remainder of a string beginning with the first occurrence of a predefined string.