Question types

Start with

Question limit

of 38 available terms

Advertisement Upgrade to remove ads
Print test

5 Written questions

5 Matching questions

  1. preg_match()
  2. unset()
  3. ksort()
  4. str_replace()
  5. explode()
  1. a 2 args: delimiter, array. creates an array using the delimiter to distinguish elements
  2. b sorts an array by keys
  3. c takes 2 arguments: string, replacement string
  4. d 2 args: regex, string -> 0 pattern didn't match or 1 pattern matched once
  5. e removes an array element

5 Multiple choice questions

  1. repeating if()
  2. inverse of asort()
  3. accepts string -> string with each \n replaced by <br>
  4. sorts an array by element value and reassigns the element keys in order of sorting: zero to last element
  5. number, string, or mixed -> floating point number with letters discarded

5 True/False questions

  1. strlen()returns length of string


  2. foreach($array as $key => $value)a loop with 3 args: array, $key, $value


  3. implode()2 args: delimiter, array. prints out elements of an array separated by the delimiter


  4. array_key_exists()2 args: value, array -> key


  5. krsort()reverse sorting of sort()