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
| 203 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:172.68.65.32
©2016-2021

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
| 132 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
| 147 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
| 128 views
11,163 questions
132,617 answers
129,948 comments
3,821 users