Question: PHP has several predefined functions for the array. Practice the following array functions on a given array. array(John=>31,Jack=>41,Lisa=>39,Smith=>40) a) ascending order sort by value b)
PHP has several predefined functions for the array. Practice the following array functions on a given array. array("John"=>"31","Jack"=>"41","Lisa"=>"39","Smith"=>"40") a) ascending order sort by value b) ascending order sort by Key c) descending order sorting by Value d) descending order sorting by Key e) Extract function f) End function
please use the PHP arrays pre-defined functions for the given scenarios.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
