1. Question: Which of the following function is used to divides the string into an array of sub strings using delimiter?

    A
    explode()

    B
    substr()

    C
    split_str()

    D
    sub_str()

    Note: Not available
    1. Report
  2. Question: implode function is used to _____

    A
    concatenate array elements to form a string

    B
    concatenate string elements to form a string

    C
    split string into and array

    D
    none

    Note: Not available
    1. Report
  3. Question: What is the output of the following code snippet?
    $email="jahid@yahoo.com";
    $a = strstr($email, '@', true);
    $b=strstr($email, '@');
    echo $a.'@'.$b;

    A
    jahid@yahoo.com

    B
    jahid@@yahoo.com

    C
    yahoo.com@jahid

    D
    yahoo.comjahid

    Note: Not available
    1. Report
  4. Question: Which of the following is correct way to use curly brace in the string?

    A
    $capicals=array("bangladesh"=>"Dhaka"); echo "This capital of Bangladesh is {$capitals["bangladesh"]}";

    B
    $capicals=array("bangladesh"=>"Dhaka"); echo "This capital of Bangladesh is {{$capitals["bangladesh"]}}";

    C
    $capicals=array("bangladesh"=>"Dhaka"); echo "This capital of Bangladesh is {$capitals['bangladesh']}";

    D
    $capicals=array("bangladesh"=>"Dhaka"); echo "This capital of Bangladesh is {$capitals[bangladesh]}";

    Note: Not available
    1. Report
  5. Question: What is the output from the followings?
    <?php
    $sString=”Bangladesh”;
    Echo substr($sString,0,6);
    ?>

    A
    Bangla

    B
    ladesh

    C
    Bangladesh

    D
    None

    Note: Not available
    1. Report
  6. Question: How to divide a string into various elements?

    A
    using string_divide()

    B
    Substring()

    C
    Split()

    D
    Str()

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd