phaxmohdem
Golden Member
Hey all.
I've got a quick php question thats stumped me after a lot of google research. I need to be able to grab the text between two set tags:
Ex.
[tag] URL_Goes_here [/tag]
So I'd need to save "URL_Goes_here" to a variable $var
the tricky part is this will be in the middle of random text, so the script will need to search through the whole variable containing the text
Scan through $full_text
Look for [tag]
Grab everything between [tag] and [/tag]
Save findings to var $var
Any tips on doing this?
Thanks
I've got a quick php question thats stumped me after a lot of google research. I need to be able to grab the text between two set tags:
Ex.
[tag] URL_Goes_here [/tag]
So I'd need to save "URL_Goes_here" to a variable $var
the tricky part is this will be in the middle of random text, so the script will need to search through the whole variable containing the text
Scan through $full_text
Look for [tag]
Grab everything between [tag] and [/tag]
Save findings to var $var
Any tips on doing this?
Thanks