Re: Detecting new paragraph ??
| From: | David Robley | Date: | Wed, 05 Jul 2000 01:49:38 +0000 |
| Subject: | Re: Detecting new paragraph ?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4858@lists.php.net to get a copy of this message | ||
On 4 Jul, Eris Ristemena wrote:
> i have been looking in manual (string function) but i haven't found it, any
> idea ?
>
> - eris
Depending on the version of PHP you are running, strstr, substr or see
the regular expression functions and you would be looking for possibly
\n (newline) or \r (carriage return) or a combination depending on the
source of the text.
If you simply want to convert them to something a browser will
recognise, use nl2br()
Cheers
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA