Welcome Guest, Not a member yet? Register   Sign In
ow can I get the unique nodeNames into an array?
#1

I have an XML like this in my Codeigniter project


Code:
<myitems>
 <myitem>
   <myname>Some Name</myname>
   <myphone>4444444</myphone>
 </myitem>
 <myitem>
   <myname>Some other Name</myname>
   <myphone>8888888</myphone>
 </myitem>
</myitems>

How can I get the unique nodeNames into an array, like array("myname","myphone") ?
Reply
#2

(This post was last modified: 02-27-2019, 03:03 AM by InsiteFX.)

PHP.NET - xml_parse_into_struct

Google is your friend.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB