Retrieving partial content from string in PHP
<p>I'm trying to figure out a function that recognizes content within brackets and is able to return that content. Like so:</p>

<pre><code>$str = "somedynamiccontent[1, 2, 3]"
echo function($str); // Will output "1, 2, 3"
</code></pre>

<p>Anybody here who can help? Thanks for your time.</p>
