function listload () { global $list123; if (!isset($list123)) { $ret = array(); $f = fopen ("list.txt", "r"); while ( !feof($f) ) { $s=fgets($f); $t = explode(" ", $s); $ret[$t[0]] = $t[1]; } fclose($f); $list123 = $ret; return $ret; } else { return $list123; } } function showlistitem ($n) { $t = listload(); print(trim($t[$n])); } ?>