PHP sorting issue with simpleXML

后端 未结 3 1279
挽巷
挽巷 2020-12-12 07:41

test.xml:





    
        a1         


        
3条回答
  •  温柔的废话
    2020-12-12 08:22

    changing this

    foreach ($prop->children() as $stateattr)
    

    to this

    foreach ($sortedStates as $stateattr)
    

    did it.

    could have sworn I tried that already.

提交回复
热议问题