thanks for the reply. i gave this a try and all my output says is
Array
The word Array isn't included in the text file.
This is what I'm doing:
$file = fopen("....names.txt","r");
$text = trim(file_get_contents($file));
$nameArray = preg_split('/\s+/', $text);
echo $nameArray;
What is the best way to display and call each index in $nameArray so for instance the first name Joe shows up. I used printf a few ways too and 'Array' is still what came up. Thanks for your help.