1. Question: Checks it's output <?php $v=sql_regcase("php 6"); echo $v; ?>

    A
    [Pp][Hh][Pp] 6

    B
    [P][H][P] 6

    C
    (Pp)(Hh)(Pp) 6

    D
    [pP][ hH][ pP] 6

    Note: Not available
    1. Report
  2. Question: What’s the special meaning of the following metacharacter(^p)?

    A
    Matches the beginning of the line

    B
    Matches the end of the line

    C
    Matches the middle of the line

    D
    It count the number of p in a sentence

    Note: Not available
    1. Report
  3. Question: which functions  provide for comparing two string in php?

    A
    strcmp()

    B
    strcasecmp()

    C
    strspn()

    D
    strcspnp()

    Note: Not available
    1. Report
  4. Question: What is the possible  output of the following syntax? <?php $v=strtolower("http://WWW.GOOGLE.COM"); echo $v; ?>

    Note: Not available
    1. Report
  5. Question: Select the correct output__ <?php $v="What is life Life is nothing But life is everything Just make it how you want to look your life"; echo nl2br($v); ?>

    A
    What is life Life is nothing But life is everything Just make it how you want to look your life

    B
    What is life(br/) Life is nothing(br/) But life is everything(br/) Just make it(br/) how you want to look your life(br/)

    C
    What is life, Life is nothing ,But life is everything, Just make it how you want to look your life.

    D
    error

    Note: Not available
    1. Report
  6. Question: Which of the following text manipulation functions is supported by PHP?

    A
    strtoupper()

    B
    ucfirst()

    C
    strtolower()

    D
    str_split()

    E
    All of the above

    Note: Not available
    1. Report
  7. Question: Given the string: $var = "john@php.net"; Which of the following will extract the TLD (top level domain) of ".net" from the string?

    A
    strstr($var, strpos($var, "."));

    B
    substr($var, strpos($var, "@"));

    C
    substr($var, strstr($var, "."));

    D
    substr($var, strpos($var, ".") + 1);

    E
    substr($var, strpos($var, "."));

    Note: Not available
    1. Report
  8. Question: When comparing two strings, which of the following is acceptable?

    A
    $a === $b;

    B
    strcasecmp($a, $b);

    C
    strcmp($a, $b);

    D
    $a == $b;

    E
    str_compare($a,$b);

    Note: Not available
    1. Report
  9. Question: Which of the following is the best way to split a string on the "-=-" pattern?

    A

    B

    C
    preg_split("-=-", $string);

    D
    explode("-=-" $string);

    E
    None

    Note: Not available
    1. Report
  10. Question: What is the output of the following code?
    <?php
    
       $string = "14302";
       
       $string[$string[2]] = "4";
       
       print $string;
       
    ?>

    A
    14304

    B
    14342

    C
    44302

    D
    14402

    E
    Array

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