[PHP] [ERR] RE: [PHP] explode separate lines

2004-02-04 Thread postmaster
Transmit Report:

 To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED])
--- Begin Message ---
Diana Castillo wrote:
> does anyone know how to do an explode where the separator is a
> linefeed? 
> 

You could try explode("\n", $stuff);, but if you are wanting to read
information from a file and store each line in an array, the file() function
does exactly that.


-- 
Burhan Khalid
phplist[at]meidomus[dot]com

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

--- End Message ---


RE: [PHP] explode separate lines

2004-02-04 Thread Burhan Khalid
Diana Castillo wrote:
> does anyone know how to do an explode where the separator is a
> linefeed? 
> 

You could try explode("\n", $stuff);, but if you are wanting to read
information from a file and store each line in an array, the file() function
does exactly that.


-- 
Burhan Khalid
phplist[at]meidomus[dot]com

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



RE: [PHP] explode separate lines

2004-02-04 Thread Vail, Warren
$result = explode("\n", $orignalvalue);

Beware, there are several caveats with "line feeds".  Depending on where the
data originated, it could be "\r\n" or "\r".

Warren Vail


-Original Message-
From: Diana Castillo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 04, 2004 8:50 AM
To: [EMAIL PROTECTED]
Subject: [PHP] explode separate lines


does anyone know how to do an explode where the separator is a linefeed?

--
Diana Castillo

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

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



[PHP] explode separate lines

2004-02-04 Thread Diana Castillo
does anyone know how to do an explode where the separator is a linefeed?

--
Diana Castillo

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