title: Convert the first element of an array to a string in PHP
body: <p>I have a PHP array and want to convert it to a string. </p>
  
  <p>I know I can use <code>join</code> or <code>implode</code>, but in my case array has only one item. Why do I have to use combine values in an array with only one item?</p>
  
  <p>This array is the output of my PHP function which returns an array:</p>
  
  <pre><code>Array(18 =&gt; 'Something');
  </code></pre>
  
  <p>How do I convert this to a string?</p>