ok this is what i have:
//this script assumes that you don't want the space before the ~n either
// get contents of a file into a string
$filename = "items.txt";
$fd = fopen ($filename, "r");
$items = fread ($fd, filesize($filename));
fclose ($fd);
$items = ereg_replace(" ~n","",$items);
$array = explode("\n",$items);
foreach($array as $value) {
echo $value . "<BR>\n";
}
i need to now make this so i can use a standard of 20 values, and if one is the the array will equal the value to "nothing".
Example say i have 7 items in my text file list, and they will be parsed into seperate array functions, (so far i got this far) now it will only make upto array[6] and then it stops making arrays. What i need it to do is make every array from 7 up to 19 = "nothing", but only if there is no text to fit in that array #.
Sounds complicated the way i explained it sorry for any confusion, and any help would be appresiated.
Thanxs,
DarkBoy