Programming - PHP

46.

Which function can be used to move the pointer to the previous element in the array ?

Answer

Answer :

Option C
47.

________ statement is used to delete all the rows from the table, and not the table itself.

Answer

Answer :

Option C
48.

Which one of the following regular expression matches any string containing zero or one x ?

Answer

Answer :

Option C

Explanation :


The question mark (?) indicates zero or one occurrences of the preceding element. For example, colou?r matches both "color" and "colour".
49.

Which of following variables can be assigned a value to it ?
  1. $1name
  2. $_name
  3. $this
  4. $This

    Answer

    Answer :

    Option D

    Explanation :


    A variable name cannot start with a number
    $this is a special variable that can’t be assigned
    Variable names are case sensitive so $This is a valid variable and can be assigned.
    50.

    Which function can be to used get environment variables in PHP ?

    Answer

    Answer :

    Option A
    Jump to page number :