By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,956 Members | 1,657 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,956 IT Pros & Developers. It's quick & easy.

string function

P: n/a
Hi,

I'd like to know whether there's a php function that transform a string into
html... espacially turning \n to <br> etc.
I couldn't find it in the php doc.

thx in advance,
--
kenneth
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On Sat, 29 Nov 2003 09:35:03 +0100, kenneth wrote:
Hi,

I'd like to know whether there's a php function that transform a string
into html... espacially turning \n to <br> etc.

Yes, there is.

I couldn't find it in the php doc.
thx in advance,

<http://www.altgeek.org/methuselah/rtfm/>

Regards,

Ian

--
Ian.H [Design & Development]
digiServ Network - Web solutions
www.digiserv.net | irc.digiserv.net | forum.digiserv.net
Programming, Web design, development & hosting.

Jul 17 '05 #2

P: n/a
I noticed that Message-ID:
<pa****************************@hybris.digiserv.ne t> from Ian.H
contained the following:
Hi,

I'd like to know whether there's a php function that transform a string
into html... espacially turning \n to <br> etc.

Yes, there is.


I love it when Ian is being playful :-)

http://uk.php.net/manual/en/function.nl2br.php

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #3

P: n/a
> Yes, there is.

<http://www.altgeek.org/methuselah/rtfm/>

Regards,

Ian


In fact, there's a prerequisite I didn't have this morning :
Basic Brain Function

Sorry for any inconvenience,
thx Geoff
--
kenneth
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.