Hi there, I'm having a problem with list() and split(). Here's the scenario:
$lines is an array containing a text file.
Each line in the text file has 19 fields that are delimited by ¦ (chr 166).
I.E.: Line 1 --> field1¦field2¦field3¦field4¦etc...
The problem occurs when the line is split into the variables in the list...for some reason there is an 'Â' character appended to each variable.
Here is the actual line of code I am using:
list($this_jobnumber,
$this_customer,
$this_address1,
$this_address2,
$this_ponumber,
$this_buyer,
$this_partnumber,
$this_description,
$this_rev, $this_qty,
$this_lineitem,
$this_sourceinspection,
$this_hirel,
$this_heatlotnumber,
$this_duedate,
$this_delivered,
$this_deliverydate,
$this_creationdate,
$this_notes)
= split('¦', lines[$i]);
So, instead of $email being 'me@here.net' it becomes 'me@here.netÂ'.
I use very similar code for three other pages and I've never had a problem (same delimiter and everything).
Any ideas?