Assume you would like to sort an array in ascending order by value while preserving key associations. Which of the following PHP sorting functions would you use?
A. ksort()
B. asort()
C. krsort()
D. sort()
E. usort()
Answer: Option B
A. ksort()
B. asort()
C. krsort()
D. sort()
E. usort()
Answer: Option B
A. karnataka 11,35,000
B. 11,35,000
C. population 11,35,000
D. karnataka population
Which function will return true if a variable is an array or false if it is not?
A. this_array()
B. is_array()
C. do_array()
D. in_array()
Join The Discussion