1) { $wtrans=explode('"', $trans[1]); $selname=urlencode($wtrans[0]); $bonload = ' onload=" parent.document.getElementById(' . "'" . 'selname' . "'" . ').value=' . "'" . str_replace("'", "' + String.fromCharCode(39) + '", $wtrans[0]) . "'; parent.document.getElementById(" . "'" . 'aselname' . "'" . ").href='" . $dprefix . urldecode($wtrans[0]) . "'; parent.document.getElementById(" . "'" . 'aselname' . "'" . ").innerHTML='" . $wtrans[0] . "'; " . ' "'; } } if ($selname != "") { $pageContent = file_get_contents("https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20thesaurus%20where%20key%3D%225r3uguAhHMoAQJIlShGL%22%20and%20word%3D%22".$selname."%22%20and%20language%3D%22" . $language . "%22&format=json&diagnostics=true&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&callback="); //$json_output = json_decode($pageContent); $mylist = explode('"synonyms":"', $pageContent); echo "

" . urldecode($selname) . " ... Thesaurus


\n
"; echo ""; for ($i=1; $i"; } else { echo ""; } } } echo "
Similar MeaningOpposite Meaning
" . str_replace(" (antonym)", "", str_replace(" (related term)", "", str_replace(" (similar term)", "", $mywords[$ii]))) . "
" . str_replace(" (antonym)", "", str_replace(" (related term)", "", str_replace(" (similar term)", "", $mywords[$ii]))) . "
"; } ?>