1. Question: Which of the following functions are available to aid you in manipulating the case of characters in a string ?

    A
    strtolower();

    B
    strtoupper();

    C
    ucfirst();

    D
    ucword();

    Note: Not available
    1. Report
  2. Question: 
    <?php
        $url = "http://WWW.EXAMPLE.COM/";
        echo strtolower($url);
    ?>
    Which of the following is correct output for above Statement ?

    A
    B
    www.example.com

    C
    D
    WWW.EXAMPLE.COM

    Note: Not available
    1. Report
  3. Question: <?php     $title = "O'Malley wins the heavyweight championship!";     echo ucwords($title); ?> Which of the following is correct output for above Statement ?

    A
    O'Malley wins the heavyweight championship!

    B
    O'Malley Wins The Heavyweight Championship!

    C
    O'Malley wins the Heavyweight Championship!

    D
    O'MALLEY WINS THE HEAVYWEIGHT CHAMPIONSHIP !

    Note: Not available
    1. Report
  4. Question: Which will output for the following code?
    <?php 
        $sentence = "the newest version of PHP was released today!"; 
        echo ucfirst($sentence);
    ?>

    A
    the newest version of PHP was released today!

    B
    The newest version of PHP was released today!

    C
    THE NEWEST VERSION OF PHP WAS RELEASED TODAY!

    D
    The Newest Version Of Php Was Released Today!

    Note: Not available
    1. Report
  5. Question: The following piece of script will output: <?php $v="allah is almighty"; echo ucwords($v); ?>

    A
    Allah Is Almighty

    B
    allah is almighty

    C
    Allah is almighty

    D
    allah is Almighty

    Note: Not available
    1. Report
  6. Question: The following piece of script will output: <?php $pswd= strlen("Robinson  crusoe"); echo $pswd; ?>

    A
    16

    B
    Robinson crusoe

    C
    17

    D
    robinson crusoe

    Note: Not available
    1. Report
  7. Question: What will be the correct output of the following syntax? <?php $v=ucfirst("nothing to say"); echo $v; ?>

    A
    Nothing to say

    B
    13

    C
    nothing to say

    D
    14

    Note: Not available
    1. Report
  8. Question: What will be the correct output of the following syntax? <?php $v=strip_tags("<a href='moni@yahoo.com'>moni@yahoo.com</a>"); echo $v; ?

    A
    B
    yahoo.com

    C
    D
    moni@

    Note: Not available
    1. Report
  9. Question: Just click it’s output <?php $m= "moni56"; if (ereg("(^[a-zA-Z])",$m)) echo "valid password"; else echo "invalid passwords"; ?>

    A
    valid password

    B
    invalid passwords

    C
    Both incorrect

    D
    Both correct

    Note: Not available
    1. Report
  10. Question: What will be the output of the followings? <?php $m= "Just forgate that\n work hard give you win\t I thing study smartly and \ndefine your goal \tthen walk confidently"; print_r(split("[\n\t]",$m )); ?>

    A
    Array ( [0] => Just forgate that [1] => work hard give you win [2]=> i thing study smartly and [3] => define your goal[4] => then walk confidently )

    B
    Just forgate that work hard give you win I thing study smartly and define your goal then

    C
    (Just forgate that work hard give you win I thing study smartly and define your goal then)

    D
    [0] => Just forgate that [1] => work hard give you win [2] => i thing study smartly and [3] => define your goal [4] => then walk confidently

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