how to split the text file???
Posted: Tue Jun 14, 2005 11:02 am
i have a text file... which is of very heavy size.... do u guys have any tools to extract the text in easy way????
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
$file_contents = file('styletest.css');
foreach ($file_contents as $num => $line_data)
{
$line_no = $num + 1;
$parsed_data = preg_split("/[\s,]+/", $line_data);
//do something...
}