Location: PHPKode > scripts > Inner Link Replacer > inner-link-replacer/example.php
<?
include_once("innerlink_replacer.php");

$glossaryItems=array();
$glossaryItems[]=array(
	'phrase'=>'php',
	'explanation'=>'PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.'
);
$glossaryItems[]=array(
	'phrase'=>'Click here',
	'explanation'=>'Php: the official website',
	'link'=>'http://www.php.net',
);

$a=new InnerLinkReplacer();
$html='<div>What is php? Click here...</div>';
$html=$a->replaceContext($html,$glossaryItems);
echo $html;
?>
Return current item: Inner Link Replacer