i have an array like
Array ( [0] => Array ( [msg] => xyx
[social] =>xxx
[priority] => 1 )
[1] => Array ( [msg] => vvv
[social] =>
[priority] => 2 )
[2] => Array ( [msg] => hhh
[social] =>
[priority] => 2 )
[3] => Array ( [msg] => rrr
[social] => jws
[priority] => 2 )
[4] => Array ( [msg] => hhhh.
[social] => fff
[priority] => 3 )
)
i need to display this msg priority wise. The condition is msg will be changed on each page load. I have used shuffle()
but it's not proper.
Is it possible to change the sequence of the array ??