Example #1
0
    }
}
// Start Benchmark
$timer_start = microtime(true);
// Adding Dictionaries
$text = '';
if ($_POST['better_eng_dict'] == "yes") {
    include "../dictionaries/english.php";
    $text .= ' ' . $english;
}
if ($_POST['better_spa_dict'] == "yes") {
    include "../dictionaries/spanish.php";
    $text .= ' ' . $spanish;
}
$a = new textFilter();
$a->add_dictionary($text)->made_from($made_from_as_array)->set_max_words($max_words)->get_words();
if ($_POST['better_sentence'] == "yes") {
    $a->sentencecase();
}
if ($_POST['better_somesentence'] == "yes") {
    $a->somesentence();
}
if ($_POST['better_uppercase'] == "yes") {
    $a->uppercase();
}
$resultados = $a->get_results();
// End Benchmark
$timer_end = microtime(true) - $timer_start;
echo '<p class="sizelabel">' . count($resultados) . ' Results (' . number_format($timer_end, 2) . ' seconds) set at ' . $bettersize . 'px</p>';
echo '<p style="font-size: ' . $bettersize . 'px;';
if (isset($_POST['betterline']) && !empty($_POST['betterline'])) {