a) sort()
b) asort()
c) rsort()
d) dsort()
Answer: c
Explanation: The function sort() will sort the arrays in ascending order, the function rsort() will sort arrays in descending order. While the function asort() will sort associative arrays in ascending order, according to the value.
Related Posts
Which of the following method scopes is/are not supported by PHP?
i) private
ii) friendly
iii) static
iv) abstractWhich of the following is/are the right way to declare a method?
i) function functionName() { function body }
ii) scope function functionName() { function body }
iii) method methodName() { method body }
iv) scope method methodName() { method body }Which one of the following is the right way to invoke a method?
Which one of the following is the right way to call a class constant, given that the class is mathFunction?
Which one of the following is the right way to define a constant?
Which one of the following can be used to instantiate an object in PHP assuming class name to be Foo?
Which one of the following property scopes is not supported by PHP?
Join The Discussion