Jump to content

getbetween()


dreamwest

Recommended Posts

use explode

<?php
$content = "
stuff stuff stuff
<tag>
what you want
</tag>
";
$value=explode("<tag>", $content);
$value=explode("</tag>", $value);
$what_you_want=$value[0];
?>

 

or you could learn to reg ex, which is much more efficient, but i hate it...

http://www.regular-expressions.info/tutorial.html

Link to comment
https://forums.phpfreaks.com/topic/167547-getbetween/#findComment-883519
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.