<?
 
/************************************************************************
 
=========================================================
 
| @ Class Name              : FindWords
 
| @ Version                 : 1.0
 
| @ Description             : finding the words by your language ...
 
| @ All rights reserved to  : NaiF PHP
 
| @ Created In              : 24-07-2007
 
| @ Support Site            : http://www.naifphp.org
 
=========================================================
 
**************************************************************************/
 
 
include "FindWords.class.php";
 
 
echo "<pre>";
 
 
$EnAlphabet = array(" ","-","+","*","&","a",
 
                  "b","c","d","e","f","g",
 
                  "h","i","j","k","l","m",
 
                  "n","o","p","q","r","s",
 
                  "t","u","v","w","x","y",
 
                  "z","B","C","D","E","F",
 
                  "G","H","I","J","K","L",
 
                  "M","N","O","P","Q","R",
 
                  "S","T","U","V","W","X",
 
                  "Y","Z");
 
 
 
$text = " åÐÇ ßáÇÓ ÌÏíÏ ¡ this is a new class ";
 
 
//
 
// FindWords([alphabet by your language], [your text], [color 2 FindWords ( 0 : all , 1 : true , 2 : false)]
 
//
 
$obj = new FindWords ($EnAlphabet, $text);
 
 
echo "<h2>Example [1] : </h2>";
 
 
print_r ($obj->Finding());
 
 
 
 
echo "<hr>";
 
 
 
 
$ArAlphabet = array(
 
                   "Ã","Ç","Å","È","Ê","Ë","Ì","Â" ,"áÅ",
 
                   "Í","Î","Ï","Ð","Ñ","Ò","Ó","É" ,"æ",
 
                   "Ô","Õ","Ö","Ø","Ù","ß","ã","áÇ","á",
 
                   "ä","å","í","Ú","Û","Ý","Þ","áÂ","Ä",
 
                   "Á","Æ","Ü"," ");
 
 
 
$text = " ãÑÍÈÇ äÇíÝ , hello naif ";
 
 
$obj = new FindWords ($ArAlphabet, $text);
 
 
echo "<h2>Example [2] : </h2>";
 
 
print ($obj->Finding());
 
 
echo "<hr><br><br>",highlight_file(__FILE__,true);
 
 
?>
 
 |