sorting - PHP How do I shift subset of array values to do something like asort? -


First of all I am new to this site and this is a great help, so thanks in advance for input

< P> After trying to compare them, I am trying to change a subset of array values, such as asort

What do I have here:

  $ array [name] = "name"; $ Array [date] = "date"; $ Array [item1] = 7; $ Array [item 2] = 16; $ Array [item 3] = 3; $ Array [item 4] = 16; $ Array [item5] = 2; $ Array [item 6] = 10; $ Array [author] = "author"; $ Array [location] = "location";  

I would like to sort the values ​​to sort the items n value so that the value of "16" is at the end of the subset and the value

  $ array [ Name] = "subscribe" other than "16" in the form of "name".  

$ Array [date] = "date"; $ Array [item1] = 7; $ Array [item2] = 3; $ Array [item3] = 2; $ Array [item4] = 10; $ Array [item5] = 16; $ Array [item 6] = 16; $ Array [author] = "author"; $ Array [location] = "location";

check this reference


Comments