2 like 0 dislike
Write a PHP script to sort the following associative array array("Sophia"=>"31","Jacob"=>"41","William"=>"39","Ramesh"=>"40") in

a) ascending order sort by value

b) ascending order sort by Key

c) descending order sorting by Value

d) descending order sorting by Key
[Exercise] Essay (Open question) - asked in 2016-2 CSIEB0270 - Internet System Design and Practice by (18k points)
Available when: Unlimited - Due to: Unlimited
| 66 views

15 Answers

0 like 0 dislike
Hidden content!
* ** * **** **** ** * * *** ** *** **
answered by (12 points)
0 like 0 dislike
Hidden content!
* * * ** *** * * *** * * ** *** * * ***
answered by (38 points)
0 like 0 dislike
Hidden content!
* * ** * * ** * ** *** * **
answered by (-2 points)
0 like 0 dislike
Hidden content!
*** *** *** * * ** ** ** ** ** ** * ****
answered by (-103 points)
0 like 0 dislike
Hidden content!
* * * ** ** *** * ** ** *** * ** ***** * *
answered by (-20 points)
0 like 0 dislike
Hidden content!
* ** *** * *** * ** ** ** *** ***** * *
answered by (-14 points)
0 like 0 dislike
Hidden content!
********** * * ****** ** * **** *** *
answered by (-335 points)
0 like 0 dislike
Hidden content!
* ** ** * *
** * * *
* ****** * *
* ***
*** = ** * ** * ** * * ** ** ** * * *** ****** * * * * * * * * *** * ** * ** * *** ** ** ***** ** * *
* ** * *
*** as **** ****
{
echo * ** = * . $x . * * Value = * * . ***
echo ** ** *** * *
}

echo * *** ** * * ** *
echo ** ** ** * * * * **
echo ****** ** ** * * **

* *
**** * * as ** * * * *
{
echo *** * = ** . $x . * * * Value = * * . *** *
echo ** *** ** * * *
}

* ***** ** **** ****
echo ** ** * * * * ** **
* * * **** * *** *

*******
** **** as ** **** )
{
echo *** ** = * . $x . *** ** = * * . ** * *
echo *** * * * * *
}

* * * * * *** ***
* * * * * *
* * * *** ***** *

** ** *
* * * as * * *
{
echo **** * = *** . $x . ***** = *** * . *
echo * * ** * ** ** **
}
*


*** *
* * ** * *
answered by (-103 points)
edited by
0 like 0 dislike
Hidden content!
**** ****** * * * *** ** * ***** * *** *** *
answered by (-211 points)
0 like 0 dislike
Hidden content!
** ** * * ** * ** * ** * * * ****
answered by (-144 points)
Get it on Google Play Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:108.162.221.153
©2016-2019

Related questions

3 like 0 dislike
0 answers
[Resource] asked May 4, 2017 in 2016-2 CSIEB0270 - Internet System Design and Practice by Shun-Po (18k points)
Available when: Unlimited - Due to: Unlimited
| 48 views
2 like 0 dislike
0 answers
[Resource] asked May 4, 2017 in 2016-2 CSIEB0270 - Internet System Design and Practice by Shun-Po (18k points)
Available when: Unlimited - Due to: Unlimited
| 34 views
2 like 0 dislike
16 answers
[Exercise] Multichoice - asked May 3, 2017 in 2016-2 CSIEB0270 - Internet System Design and Practice by Shun-Po (18k points)
Available when: Unlimited - Due to: 2017-05-04 10:30:00
| 35 views
3 like 0 dislike
18 answers
[Exercise] Multichoice - asked May 3, 2017 in 2016-2 CSIEB0270 - Internet System Design and Practice by Shun-Po (18k points)
Available when: Unlimited - Due to: 2017-05-04 10:30:00
| 24 views
2 like 0 dislike
16 answers
[Exercise] Multichoice - asked May 3, 2017 in 2016-2 CSIEB0270 - Internet System Design and Practice by Shun-Po (18k points)
Available when: Unlimited - Due to: 2017-05-04 10:30:00
| 26 views
8,045 questions
60,931 answers
33,050 comments
1,127 users