Demo 1
Array
(
[google search] => 2
[search click] => 2
[click redirected] => 1
[redirected seconds] => 1
[seconds trouble] => 1
[trouble accessing] => 1
[accessing google] => 1
[click send] => 1
[send feedback] => 1
[feedback text] => 1
)
======================
Text: google search please click here if you are not redirected within a few seconds if you're having trouble accessing google search please click here or send feedback te...
Total nGrams: 13
======================
Demo1.php
<?php
//Top Keywords as an array
$tm = new TextMiner();
//add any number of files and or text
$tm->addFile("http://www.google.com/search?q=data+mining");
$tm->addText("Text can be added this way.");
$tm->convertToLower = TRUE; // optional
$tm->process();//should be called before accessing keywords
printa($tm->getTopNGrams(10));
echo $tm->printSummary();
?>