I see that there is an object within as object, with $email being your object name, here it goes.<br>$email-&gt;5-&gt;field_email[&#39;und&#39;][0][&#39;value&#39;]; This should work for you.<br><br><div class="gmail_quote">

On Sat, Mar 24, 2012 at 5:45 AM, Mutuku Ndeti <span dir="ltr">&lt;<a href="mailto:jnmutuku@gmail.com">jnmutuku@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<br>
<br>
I have picked an array from a custom node using entity_load.  I am<br>
trying to get the email value but it does not work.<br>
<br>
$email-&gt;field_email[&#39;und&#39;][0][&#39;value&#39;]; gives me nothing<br>
<br>
below is my print_r output<br>
<br>
stdClass Object ( [5] =&gt; stdClass Object ( [vid] =&gt; 5 [uid] =&gt; 1<br>
[title] =&gt; John Doe [log] =&gt; [status] =&gt; 1 [comment] =&gt; 0 [promote] =&gt;<br>
0 [sticky] =&gt; 0 [nid] =&gt; 5 [type] =&gt; supplier [language] =&gt; und<br>
[created] =&gt; 1332514672 [changed] =&gt; 1332514672 [tnid] =&gt; 0<br>
[translate] =&gt; 0 [revision_timestamp] =&gt; 1332514672 [revision_uid] =&gt;<br>
1 [body] =&gt; Array ( ) [field_email] =&gt; Array ( [und] =&gt; Array ( [0] =&gt;<br>
Array ( [value] =&gt; <a href="mailto:John.Doe@jdoe.com">John.Doe@jdoe.com</a> [format] =&gt; [safe_value] =&gt;<br>
<a href="mailto:John.Doe@jdoe.com">John.Doe@jdoe.com</a> ) ) ) [field_contact_name] =&gt; Array ( [und] =&gt; Array<br>
( [0] =&gt; Array ( [value] =&gt; John Doe [format] =&gt; [safe_value] =&gt; John<br>
Doe ) ) ) [name] =&gt; admin [picture] =&gt; 0 [data] =&gt; b:0; ) )<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Tel:254- 722-490994<br>
<a href="http://www.agile.co.ke" target="_blank">www.agile.co.ke</a> | <a href="http://www.jipambe.com" target="_blank">www.jipambe.com</a><br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Vaibhav Jain<br>