# Parsing only the email field

**URL:** <https://forum.kirupa.com/t/parsing-only-the-email-field/235793>\
**Category:** Uncategorized\
**Created:** [August 14, 2007, 8:33pm UTC](https://forum.kirupa.com/t/parsing-only-the-email-field/235793 "2007-08-14T20:33:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mariusd](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@mariusd](https://forum.kirupa.com/u/mariusd)\
**Post date:** [August 14, 2007, 8:33pm UTC](https://forum.kirupa.com/t/parsing-only-the-email-field/235793/1 "2007-08-14T20:33:09Z")

</div>

Hello,

I need help with parsing **just the email** \*\*address \*\*from the following code:

\<?xml version=“1.0” ?\>  
\<data\>  
\<user\>  
\<name\>Lost\</name\>

```
      &lt;pwd&gt;xyz&lt;/pwd&gt; 

   &lt;email&gt;lost@lost.com&lt;/email&gt;
&lt;/user&gt;

```

\</data\>

Can you please help me with a php for it? Im pretty new to the ‘php alien’ language:-(

Thanks in advance!!
