Getting info out of an array as a variable
<p>Basically i'm trying to get some IPTC data from an image when a user uploads it. </p>

<p>Here's my code:</p>

<pre><code>        $size = getimagesize($image_file, $info);
        if(isset($info['APP13']))
        {
            $iptc = iptcparse($info['APP13']);
            $iptc_description = $iptc['2#120'];
            $caption = $iptc_description["0"];
            var_dump($caption);
        }
</code></pre>

<p>I did a var_dump, it dumps out:</p>

<blockquote>
  <p>string(13) "caption data here blah blah"</p>
</blockquote>

<p>How can I get the $caption variable to just contain the caption data, without the string. I need the caption data as a variable so I can insert it into a db. </p>

<p>I don't really use arrays a lot so i'm a bit stuck! </p>

<p>Thanks!</p>
