?
What will be the output of the following PHP code?
What will be the output of the following PHP code?
<?php
$url = "contact@examveda.com";
echo ltrim(strstr($url, "@"),"@");
?>
<?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.
Join the Discussion
Login to post a comment or share your explanation.
Login