?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
function email()
{
$email = ’contact@examveda.com’;
$new = strstr($email, ‘@');
echo $new;
}
email();
?>
<?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.
Join the Discussion
Login to post a comment or share your explanation.
Login