forked from jgreen01/jargon-parser
/
testing.php
55 lines (39 loc) · 1.33 KB
/
testing.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
include 'jargonLibrary.php';
//include ("template.html");
/*$a_jarData = getJargon('Nightmare File System');
echo '<h1>name:</h1>' . $a_jarData['name'];
echo '<br><h1>def:</h1> ';
foreach($a_jarData['def'] as $defItem)
echo $defItem;*/
//gen clean jargon
/*foreach($a_lexiList as $item)
getJargon($item);*/
// gen ratings
/*foreach($a_lexiList as $item)
getRating($item);*/
/*$myLexiSearch = lexiSearch('hac');
if(gettype($myLexiSearch) == "array")
foreach($myLexiSearch as $i => $item)
echo '<br> possiblity ' . $i . ' ' . $a_lexiList['name'][$item];
else
echo '<br> lexiSearch: ' . $a_lexiList['name'][$myLexiSearch]; */
$searchJargon = new JarSearch();
$searchJargon->search(1337);
//$a_lexiList = $searchJargon->getLexiList();
echo '<br>';
print_r($searchJargon->getNames());
foreach($searchJargon->getNames() as $i => $item)
echo '<br> $item['.$i. ']: ' . $item;
$word = randomWord();
echo '<br>';
print_r($word);
echo '<br>';
$a_top = getTopRate();
echo '<br>';
print_r($a_top);
/*$a_ratJar = getRating('hack');
$a_ratJar = setRating(true, 'hack', $a_ratJar);
echo '<br>';
print_r($a_ratJar);*/
?>