NAME: ________________________

Basic PHP Functions Test

Question Types


Start With


Question Limit

of 38 available terms

Upgrade to
remove ads

5 Written Questions

5 Matching Questions

  1. strlen()
  2. number_format()
  3. sort()
  4. strtolower()
  5. preg_match()
  1. a 2 args: regex, string -> 0 pattern didn't match or 1 pattern matched once
  2. b returns a number string in comma format
  3. c makes letters lowercase in a string
  4. d sorts an array by element value and reassigns the element keys in order of sorting: zero to last element
  5. e returns length of string

5 Multiple Choice Questions

  1. accepts string -> string with each \n replaced by <br>
  2. inverse of ksort()
  3. 2 args: delimiter, array. creates an array using the delimiter to distinguish elements
  4. 2 args: delimiter, array. prints out elements of an array separated by the delimiter
  5. converts an integer or float into a string

5 True/False Questions

  1. ksort()sorts an array by keys

          

  2. arsort()inverse of asort()

          

  3. abs()returns absolute value of an argument

          

  4. count()sorts an array by element value and reassigns the element keys in order of sorting: zero to last element

          

  5. for()a loop that takes 3 expressions: initialization, test, and iteration

          

Create Set