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!
Say I have a string "hello world [stuff] //code source [/stuff] bla bla bla". How can I split this string each time the function encounters the stuff tag? So far I have tried split("[[stuff].[/stuff]]",$str) with no luck. I also tried several variations and the strtok() method.