1. Question: Which of the following PHP's  property scopes:

    A
    public

    B
    private

    C
    protected

    D
    final

    E
    static

    Note: Not available
    1. Report
  2. Question: How to determine the length of a string?

    A
    strlen($str)

    B
    strLength($str)

    C
    strLength($str)

    D
    None

    Note: Not available
    1. Report
  3. Question: Comparing two strings case insensitively, which of the following function is used?

    A
    strCompare($str1,$str2)

    B
    strcasecmp($str1,$str2)

    C
    compare($str1,$str2)

    D
    None

    Note: Not available
    1. Report
  4. Question: How to convert a string to lowercase?

    A
    Stringtolower($str)

    B
    tolower($str)

    C
    strtolower($str)

    D
    lower($str)

    Note: Not available
    1. Report
  5. Question: How to convert a string to Uppercase?

    A
    Stringtolower($str)

    B
    tolower($str)

    C
    strtoupper($str)

    D
    lower($str)

    Note: Not available
    1. Report
  6. Question: How to capitalize each word?

    A
    Stringtoupperr($str)

    B
    tocapitalize($str)

    C
    strtoupper($str)

    D
    ucwords($str)

    Note: Not available
    1. Report
  7. Question: Which function is used to convert html tag to plain text?

    A
    strip_tags($input)

    B
    strip_html ($input)

    C
    tag_strip($input)

    D
    tag_strips($input)

    Note: Not available
    1. Report
  8. Question: Which function parses the string based on a predefined list of characters ?

    A
    strtok(string str, string tokens)

    B
    strtoks(string str, string tokens)

    C
    strstok(string str, string tokens)

    D
    str_tok(string str, string tokens)

    Note: Not available
    1. Report
  9. Question: ______ methods can be accessed from anywhere at any time.

    A
    Public

    B
    Private

    C
    Protected

    D
    All

    E
    none

    Note: Not available
    1. Report
  10. Question: Which of the following function was introduced in PHP 5.2?

    A
    error_get_last()

    B
    error_get_Last()

    C
    errors_get_Last()

    D
    errors_get_last()

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