ExamVeda
Login
Home
This question belongs to PHP Functions
Functions
?

What will be the output of the following PHP code ?
<?php
function email()
{
    $email = ’contact@examveda.com’;
    $new = strstr($email, ‘@');
    echo $new;
}
email();
?>

Answer & Solution
Correct Answer: Option C
The strstr() function searches for the first occurrence of a string inside another string.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.