Question
What will be the output of the following PHP code?
< ?php
$url = "nachiketh@example.com";
echo ltrim(strstr($url, "@"),"@");
?>
< ?php
$url = "nachiketh@example.com";
echo ltrim(strstr($url, "@"),"@");
?>
Answer: Option D
Was this answer helpful ?
The strstr() function returns the remainder of a string beginning with the first occurrence of a predefined string.
Was this answer helpful ?
Submit Solution