"/>
Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

  1. What will be the output of the following PHP code?

    <?php

    $url = "contact@examveda.com";

    echo ltrim(strstr($url, "@"),"@");

    ?>

  2. A.

     contact@examveda.com

    B.

     contact

    C.

     contact@

    D.

     examveda.com

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    The strstr() function returns the remainder of a string beginning with the first occurrence of a predefined string.


Be The First To Comment