title: PHP How to print a single value from this Array?
body: <p>I have an Array like this one:</p>
  
  <blockquote>
    <p>Array ( [0] => a:39:{s:2:"id";s:6:"703981";s:4:"name";s:10:"Bilton Apt";s:7:"address";s:25:"Hart Blvd, Paradise Acres";s:3:"zip";s:2:"PO";s:10:"city_hotel";s:11:"Montego ....etc...</p>
  </blockquote>
  
  <p>And i want to print in the page the "name" value so i wrote these two lines of code:</p>
  
  <pre><code> $item = get_post_meta($post-&gt;ID, '_ihfc_hotel'); 
   echo $item['name'];
  </code></pre>
  
  <p>But when i load the page i receive this error:</p>
  
  <p>Notice: Undefined index: name in /Applications/MAMP/htdocs/wp_test_csv/wp-content/themes/twenty....etc</p>
  
  <p>i tried with other solutions like:</p>
  
  <pre><code>echo $item[0]['name']; or echo $item[0]-&gt;['name']:
  </code></pre>
  
  <p>But none works</p>
  
  <p>Some one can help me?</p>