3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "tacos ares so good {tag} don't you think {tag} or do you not think?"; function _return_between($tag,$subject) { $split = explode($tag,$subject,3); return isset($split[1])?$split[1]:false; } echo _return_between('{tag}',$string);
Output for 4.3.0 - 7.1.0
don't you think