RE: [PHP] Array of words in textfile?

2001-04-06 Thread Jonathan Sharp
: Thursday, April 05, 2001 11:11 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Array of words in textfile? If they are all in a format like that, first just read the text file with fopen/fread into one big string. Then use: $refined_string = explode(" ", $bigstring); That'

Re: [PHP] Array of words in textfile?

2001-04-05 Thread Plutarck
If they are all in a format like that, first just read the text file with fopen/fread into one big string. Then use: $refined_string = explode(" ", $bigstring); That's the main way to do it, but the preferable way is using a regular expression with either the ereg or preg functions. --