Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
108 views
in Technique[技术] by (71.8m points)

php - sorting of xml data by parameter

I need some help how sort existing xml array, here it is:

<e>
  <id>1</id>
  <name>London</name>
</e>
<e>
  <id>2</id>
  <name>Berlin</name>
</e>
<e>
  <id>3</id>
  <name>Paris</name>
</e>
<e>
  <id>4</id>
  <name>Rome</name>
</e>

Currently it is sorted by "id" tag, but I need to reorder it by php and to get it sorted by the "name" tag. Many thanks in advance for your help!

question from:https://stackoverflow.com/questions/65836376/sorting-of-xml-data-by-parameter

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...