sort array and input it into another array in php -
this result of array when print it:
print_r($frequency);
result:
array ( [a] => 1 [very] => 1 [nice] => 2 [to] => 3 [tot] => 1 [text] => 2 [something] => 1 [think] => 1 [about] => 1 [if] => 1 [you're] => 1 [into] => 1 )
i want order numbers , input words array. want array:
newarray(to,nice,text,a,very,tot,something,think,about,if,your're,into)
asort($frequency);
sorts array it's value low high , keeps assosiation.
i don't know part ne array, don't understand want in that.
Comments
Post a Comment