Q. Which function creates an array from variables and their values?
β
Correct Answer: (A)
compact()
Explanation: compact() takes variable names and returns an associative array of their values.