Uhm non potresti creare tipo un file di testo di questo tipo:
1 valore1
2 valore2
3 valore3
poi o ti crei una funzioncina di questo tipo:Codice PHP:
function GetValue($numero) {
$found = FALSE;
$fp = fopen("test.txt",'r');
while ( (!feof($fp)) && (!$found)) {
list($num,$value) = explode(" ",fgets($fp,4096));
if ($num == $numero) {
$output = $value;
$found = TRUE;
}
}
if (!$found) { $output = NULL; }
fclose($fp);
return $output;
}