")
$close_tag Name of the closing tag (i.e. "")
***********************************************************************/
function parse_array($string, $beg_tag, $close_tag)
{
preg_match_all("($beg_tag(.*)$close_tag)siU", $string, $matching_data);
return $matching_data[0];
}
/*-------------------------*/
/***********************************************************************
$string = remove($string, $open_tag, $close_tag)
-------------------------------------------------------------
DESCRIPTION:
Removes all text between $open_tag and $close_tag
INPUT:
$string The target of your parse
$open_tag The starting delimitor
$close_tag The ending delimitor
***********************************************************************/
function remove($string, $open_tag, $close_tag)
{
# Get array of things that should be removed from the input string
$remove_array = parse_array($string, $open_tag, $close_tag);
# Remove each occurrence of each array element from string;
for($xx=0; $xx