PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have a script which needs to search a variable (which is from a mysql database e.g $row['text']) for any text which is enclosed by square brackets.
I have had a go at creating this however it doesnt put the text in the correct array, also when i try to echo out $matches[0] or any other array element it comes back with nothing.