title: Extract data from string and set as new string
body: <p>I am retrieving information from a string, lets call it $data and the output is as follows:</p>
  
  <pre><code>Array
  (
      [0] =&gt; John Doe
  )
  </code></pre>
  
  <p>How can take the portion of the Full name and set that as a new string, say $fullname</p>
  
  <p>the value of $fullname should be: <code>John Doe</code></p>