Results 1 to 3 of 3
Oct 23, 2011, 13:58 #1
- Join Date
- Jul 2006
- 0 Post(s)
- 0 Thread(s)
How to trim string down to content between <!-- MARKER --> and <!-- / MARKER -->
Let's assume that one had a string variable something like:
$content = "garbage garbage garbage garbage <!-- MARKER --> gold gold gold gold <!-- / MARKER --> garbage garbage garbage garbage";
What would be the best way to be able to create a variable called $gold that contains only the "gold gold gold gold" content as marked by the opening and closing of the <!-- MARKER --> tag?
I'm having issues getting this small filtering task accomplished, any help would be much appreciated.