Help me convert xml to php array

Can some help me to convert the below xml data into php array. Thanks in advance.

[code]

<![CDATA[Which of the following is not the measure of a physical quantity?]]>
<![CDATA[kilogram]]>
<![CDATA[impulse]]>
<![CDATA[energy]]>
<![CDATA[density]]>

<ans_desc><![CDATA[kilogram is the name of the fundamental unit of mass]]></ans_desc>


<![CDATA[Which of the following sets can enter into the list of fundamental quantities in any system of units?]]>
<![CDATA[length, mass and velocity]]>
<![CDATA[length, time and velocity]]>
<![CDATA[mass, time and velocity]]>
<![CDATA[length, time and mass]]>

<ans_desc><![CDATA[velocity cannot enter in this set because it itself involves length and time.]]></ans_desc>


<![CDATA[If the unit of force and length are doubled, the unit of energy will be]]>
<![CDATA[Œ times]]>
<![CDATA[œ times]]>
<![CDATA[2 times]]>
<![CDATA[4 times]]>

<ans_desc><![CDATA[

Energy = Force
distance = Force
length.

When force and length are doubled, the unit of energy will becomes four times that of its initial value.

]]> <![CDATA[Given that displacement of a particle is given by where t denotes the time. The unit of K is]]> <![CDATA[hertz]]> <![CDATA[metre]]> <![CDATA[radian]]> <![CDATA[second]]> <![CDATA[

Here K is dimensionless. Thus

]]> <![CDATA[Dimensions of velocity gradient are same as that of ]]> <![CDATA[time period]]> <![CDATA[frequency]]> <![CDATA[angular acceleration]]> <![CDATA[acceleration]]> <![CDATA[

[velocity gradient ]

= [ velocity] / [ distance]

]]> <![CDATA[Which of the following physical quantities is/are dimensionless?]]> <![CDATA[length]]> <![CDATA[time]]> <![CDATA[mass]]> <![CDATA[all of these]]> <![CDATA[all these quantities are dimensionless.]]> <![CDATA[Erg sec is the unit of ]]> <![CDATA[angle]]> <![CDATA[momentum]]> <![CDATA[gravitational constant]]> <![CDATA[Planck's constant]]> <![CDATA[The unit of Planck’s constant is ]]> <![CDATA[Which of the following have same dimension?]]> <![CDATA[pressure and density]]> <![CDATA[gravitational potential and energy]]> <![CDATA[impulse and momentum]]> <![CDATA[stress and strain]]> <![CDATA[

Impulse = force time

Momentum = mass velocity

]]> <![CDATA[Which of the following pairs of physical quantities will have same dimensional formula]]> <![CDATA[work and couple]]> <![CDATA[force and power]]> <![CDATA[latent heat and specific heat]]> <![CDATA[work and power]]> <![CDATA[

work = force displacement

]]> <![CDATA[Planck’s constant has same dimension as]]> <![CDATA[energy]]> <![CDATA[force]]> <![CDATA[linear momentum]]> <![CDATA[angular momentum]]> <![CDATA[

Angular momentum

]]> <![CDATA[The dimension of Planck’s constant is]]> <![CDATA[]]> <![CDATA[]]> <![CDATA[]]> <![CDATA[]]> <![CDATA[

We know that E=hv

]]> <![CDATA[Dimension of torque is ]]> <![CDATA[]]> <![CDATA[]]> <![CDATA[]]> <![CDATA[]]> <![CDATA[

Torque = force distance

]]> <![CDATA[The dimensions of angular velocity is]]> <![CDATA[]]> <![CDATA[]]> <![CDATA[]]> <![CDATA[c]]> <![CDATA[

]]> <![CDATA[If were chosen as fundamental units of force, velocity and time respectively, the dimensions of mass would be represented as ]]> <![CDATA[]]> <![CDATA[]]> <![CDATA[]]> <![CDATA[]]> <![CDATA[

We know that Force = mass acceleration

]]> <![CDATA[If energy E, velocity V and time T are taken as the fundamental units, what is the dimensional formula for energy per unit area?]]> <![CDATA[E V T]]> <![CDATA[]]> <![CDATA[]]> <![CDATA[]]> <![CDATA[

Here a= 1

Now

Or

This gives

So, c= -2

]]>

[/code]

I’ve already answered this when you posted as a guest:

http://www.phphelp.com/forum/index.php?topic=17168.msg57271#msg57271

Sponsor our Newsletter | Privacy Policy | Terms of Service