I\'m interested in function delete_all_between($char1, $char2, $string) that will search given $string for $char1 and $char2 and, if such has been found, clear
function delete_all_between($char1, $char2, $string)
Here's a oneliner:
preg_replace('/START[\s\S]+?END/', '', $string);
Replace START and END :) Credits go to another SO thread!
START
END