ExamVeda
Login
Home
This question belongs to PHP Regular Expressions
Regular Expressions
?

What will be the output of the following PHP code?
<?php
$url = "contact@examveda.com";
echo ltrim(strstr($url, "@"),"@");
?>

Answer & Solution
Correct Answer: Option D
The strstr() function returns the remainder of a string beginning with the first occurrence of a predefined string.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.