Location: PHPKode > scripts > Mentions > example.php
<?php
	require_once("mentions.class.php");
	$mentions = new mentions;
	
	/*
	 * At first, we fill add some names
	 * */
	$mentions->add_name("Angelina");
	$mentions->add_name("Bob_Marley");
	$mentions->add_name("mr_marx");
	$mentions->add_name("Joseph");
	/*
	------------------------------------
	*/
	$mentions->process_text("Hello, @Angelina, I'm @Bob_Marley. How about a coffe with @mr_marx at the Bar? Maybe my son @Joseph");
?>
Return current item: Mentions