I’m trying to figure out a function that recognizes content within brackets and is able to return that content. Like so:
$str = "somedynamiccontent[1, 2, 3]"
echo function($str); // Will output "1, 2, 3"
Anybody here who can help? Thanks for your time.
1 Answer