'; // Lets define some values outside the condition below, in case we have an empty // document. $textarray = array(); $varlines = ''; echo ' '; foreach ($textarray as $key=>$value) { echo $value; } $dictionaries = str_replace(chr(10),",", shell_exec($aspelldictionaries)); if(ereg(",$",$dictionaries)) $dictionaries = ereg_replace(",$","",$dictionaries); echo '
'.$dictionaries.'
'; echo ''; ?>