Find Count of Child Elements using PHP

I have xml like following. How i can get count of all "product" elements of the one "order" using PHP. Please help
<order_0>
<product_1>product Name</product_1>
<product_2>product Name</product_2>
<product_3>product […]

See original post by invalid@example.com (yourwish)

Leave a Reply