Hi,
If I have this:
Today is a good day
[LINK]Johnny is good[/LINK]
Tomorrow will be better
[LINK]Mary is bad[/LINK]
Who cares
And there could be anywhere between 0 and 4 occurrences of the [LINK]...some text...[/LINK] tags, how can I extract the strings
"Johnny is good" and "Mary is bad" ?
Really nice would be to have these stored in an array, such as
$myarray=array( 1=>'Johnny is good',2=>'Mary is bad');
Any pointers or ideas? Many thanks!
If I have this:
Today is a good day
[LINK]Johnny is good[/LINK]
Tomorrow will be better
[LINK]Mary is bad[/LINK]
Who cares
And there could be anywhere between 0 and 4 occurrences of the [LINK]...some text...[/LINK] tags, how can I extract the strings
"Johnny is good" and "Mary is bad" ?
Really nice would be to have these stored in an array, such as
$myarray=array( 1=>'Johnny is good',2=>'Mary is bad');
Any pointers or ideas? Many thanks!
Comment