title: Assign array element to variable in PHP
body: <p>I know this is a silly question, but i'm stucked!
  I have the following array:</p>
  
  <pre><code>Array ( [type] =&gt; 8 [message] =&gt; Use of undefined constant hola - assumed 'hola' 
   [file] =&gt; C:\wamp\www\WeCode\code.php(29) : eval()'d code [line] =&gt; 3 ) 
  </code></pre>
  
  <p>I want a variable <code>$var</code> to have the string of [message] element. I'm trying to access the array via indexes, but it throws me offset errors! So what can I do? I think is pretty simple, but I'm stuck with that.</p>