<?php

	/**
	*	Load the class
	**/

	require_once("ExtractTextBetweenTags.class.php");

	/**
	*	Initialize the class
	**/

	$ext	= new ExtractTextBetweenTags();

	/**
	*	Make up some text
	**/

	$text	= <<<EOT
<h3 class="toggler atStart">Section Title 1</h3>
<div class="element atStart">Section One content goes here.</div><!-- elementAtStart -->
<!--sectionbreak-->
EOT;

	$header = $ext->extract($text,'<h3 class="toggler atStart">','</h3>');
	echo($header);

	// returns "Section Title 1"

	$body	= $ext->extract($text,'<div class="element atStart">','</div><!-- elementAtStart -->');
	echo($body);

	// returns "Section One content goes here."


?>