How do I convert one element (or key) of an array into a string variable?
<p>I have an array like this:</p>

<pre><code>array
(
[0] =&gt; "string0"
[1] =&gt; "string1"
)
</code></pre>

<p>I want to be able to do something like this:</p>

<pre><code>$str = array[0];
print_r ($str);
</code></pre>

<p>And get a result like this:</p>

<pre><code>"string0"
</code></pre>

<p>Instead I am getting this:</p>

<pre><code>str
(
[0] =&gt; "string0"
)
</code></pre>

<p>I want to take one element of an array and turn it into a string.</p>
