Single Choice
Not Set
QWhat will be the output of the following PHP code?
< ?php
$url = "nachiketh@example.com";
echo ltrim(strstr($url, "@"),"@");
?>
ID: #2401
PHP String and Regular Expression
3,518 views
Question Info
#2401Q ID
Not SetDifficulty
PHP String and Regular ExpressionTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
The strstr() function returns the remainder of a string beginning with the first occurrence of a predefined string.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic