Demo 0 | Demo 1 | Demo 2 | Demo 3 | Demo 4 | Demo 5 | Code | Matt Smith

Demo 5

The quick brown fox jumped over the lazy dog
Array
(
    [0] => quick
    [1] => brown
    [2] => fox
    [3] => jumped
    [4] => lazy
    [5] => dog
)

Demo5.php

<?php

/* STATIC METHOD DEMO */
//Note: no instance of tm is necessary nor does process need not be called 
//STOPWORD REMOVAL

//Stopword removal
$text "The quick brown fox jumped over the lazy dog";
echo 
$text;
$words explode(" ",strtolower($text));
printa(TextMiner::removeStopWords($words));
        
?>