search

Home  >  Q&A  >  body text

How to sort multidimensional groups to get maximum value

Please give me some advice

The current variable value is as follows:


array(1){
[
“hostlist”
] =>array(1){
                                                                           " net.if.in[bond1]"
                                                                                                                                                         net.if.            1
                                                                                                                                                                                                                                                                        ]=>
                ]=>string(8)"38263176" [
4
] = & GT; String (8) "39617752" [
5
] = & GT; String (8) "36451976"
}
}


How can I get the current maximum value?

T.TT.T2711 days ago531

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-06-29 09:56:27

    Hello, your problem can be solved with foreach()

    That is, the value is taken every time foreach() (in this case, the key name can be removed)

    Hope to adopt it~

    reply
    0
  • Cancelreply