Re: RegEx - Is this right?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



yes, it is equal, but i'd rather use file() function


Gustav Wiberg wrote:

Hi there!

I want to get conents of a file and split into a array...

   $s = file_get_contents($fileName);
   $splitS = preg_split("/\n/",$s);

Is this equal to using $splitS = file($fileName) ?

/G
http://www.varupiraten.se/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux