![]() |
|
|
+ Search |
![]()
|
Mar 3rd, 2006 10:47
IceCold Fire, Joachim Klinkhammer, Tam bouma, Onno Benschop,
$myarray = file("/path/to/somefile");
$myarray is now an array. each line in the file, is now a cell in the
array
using the explode command
$file="whatever.text"; // turns the file into a string
$myarry = explode("|", $file); // breaks the file up into an array
with each cell created at | (or whatever else you want to create the
split at)