robert_gsfame Posted June 3, 2010 Share Posted June 3, 2010 Assume i have this text $string=[blabla]this is my text between tag[/blabla]and this is text outside tag n how can i get everything outside tag and put it in $string2 and everything between tag into $string3 so i wish to have $string2 with "this is my text between tag" and $string3 with "this is text outside tag" text between and outside tag are dynamic Thx Link to comment https://forums.phpfreaks.com/topic/203735-tag-small-problem/ Share on other sites More sharing options...
phpchamps Posted June 3, 2010 Share Posted June 3, 2010 $string = "[blabla]this is my text between tag[/blabla]and this is text outside tag"; $str = explode('[/blabla]',$string); $string1 = substr($str[0],; $string2 = $str[1]; echo $string1."____".$string2; Link to comment https://forums.phpfreaks.com/topic/203735-tag-small-problem/#findComment-1067110 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.