Re: [PHP] 2D array from file

2001-09-26 Thread Brian White
I think this is not working because "\t" is a regular expression and explode only works on strings.. Actually, I have no idea and I feeling very confused right now but maybe try "split" and see how it goes. Brian At 13:37 26/09/2001 -0400, John Frenzel wrote: >I have created a 2D array, th

[PHP] 2D array from file

2001-09-26 Thread John Frenzel
I have created a 2D array, then written it into a tet file. The file is written such that all the secondary array elements (the rows) are seperate lines, with the "columns" tab-delimited. Now I'd like to read this file back into a 2D array. I thought this should work: $array_file = file ("array.