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);
Then you can do assign the variables as such:
$name = $arrayname[0]; etc
Could be a better way from the list :)
Jeff
-
:[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
3 matches
Mail list logo