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
| 168 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:162.158.79.208
©2016-2020

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
| 111 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
| 123 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
| 107 views
10,553 questions
115,686 answers
103,526 comments
3,772 users