Hi
Say I have a text file, separated by | ( a pipe). Now, I want to extract
that info, in the form of variables. I can extract and display the info in
the text files, but that's not what I want. I want to be able to tell it
that the first entry should be variable1, the second entry should be
- Original Message -
From: Rudi Ahlers [EMAIL PROTECTED]
To: PHP General [EMAIL PROTECTED]
Sent: Wednesday, November 14, 2001 3:08 PM
Subject: [PHP] Setting variables from a text file
Hi
Say I have a text file, separated by | ( a pipe). Now, I want to extract
that info, in the form
:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 3:12 PM
To: Rudi Ahlers; PHP General
Subject: Re: [PHP] Setting variables from a text file
Someone may have a better way but you can read each line (assuming the
file
uses \n for a new record) and use:
arrayname = explode
General
[EMAIL PROTECTED]
Sent: Wednesday, November 14, 2001 10:11 PM
Subject: Re: [PHP] Setting variables from a text file
Someone may have a better way but you can read each line (assuming the
file
uses \n for a new record) and use:
arrayname = explode(|,$variable_holding_line_from_file
4 matches
Mail list logo