Re: [PHP] wordwrap function (that skips html tags)

2002-09-03 Thread Bas Jobsen
Hello, What's your php version? Take at look at: http://www.php.net/manual/en/function.wordwrap.php and http://www.php.net/manual/en/function.strip-tags.php b.e. $str='http://www2.snm-hgkz.ch/~rieger/notepool/addnote.php'; echo wordwrap(strip_tags($str),8,'',1); i you can't use wordwrap(), try:

Re: [PHP] wordwrap not working

2002-02-20 Thread Steven Walker
This may be a nl2br() problem. If you are setting \n as your newline character, it probably needs to be if your just echoing it. Depending on where it ultimately gets displayed, you'll want one or the other. For example, sending an email message you want \n. Steven J. Walker Walker Effects ww

RE: [PHP] wordwrap not working

2002-02-20 Thread Joel Boonstra
> If your viewing the output through a browser, try this; > > $text = "The quick brown fox jumped over the lazy dog."; > $newtext = wordwrap( $text, 20, ""); > echo "$newtext\n"; > ?> Ah, this is a better solution than mine -- I didn't know wordwrap had the 3rd (and 4th) parameters till now. Jo

Re: [PHP] wordwrap not working

2002-02-20 Thread Joel Boonstra
> it should print like this: > > The quick brown fox > jumped over the lazy dog. > > but it still printing like this: > > The quick brown fox jumped over the lazy dog. HTML treats bunches of whitespace as one space. Look at the source of the page; you'll see that it's doing what it should. If

RE: [PHP] wordwrap not working

2002-02-20 Thread David Redmond
If your viewing the output through a browser, try this; "); echo "$newtext\n"; ?> -Original Message- From: Michael P. Carel [mailto:[EMAIL PROTECTED]] Sent: Thursday, 21 February 2002 1:25 PM To: php Subject: [PHP] wordwrap not working Hi, Im testing the example in the http://www.ph

RE: [PHP] wordwrap not working

2002-02-20 Thread Martin Towell
Are you looking at the output in a web browser? Martin -Original Message- From: Michael P. Carel [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 2:25 PM To: php Subject: [PHP] wordwrap not working Hi, Im testing the example in the http://www.php.net/manual/en/function.wo

Re: [PHP] wordwrap()

2001-07-17 Thread Tyler Longren
Well, that was easy. I never even thought to change the \n to . Thanks for helping me over my mental block... Tyler - Original Message - From: "scott [gts]" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Tuesday, July 17, 2001 10:25 AM Subject:

RE: [PHP] wordwrap()

2001-07-17 Thread scott [gts]
i know this is a silly question, but you're not looking at it thru a web browser, are you? browsers are for HTML and markup code. the output on my computer is the same as the manual output: A very long wooo ord. > -Original Message- > From: Tyler Longren [mailto:[EMAIL PROTECTED]

Re: [PHP] wordwrap

2001-05-06 Thread Yasuo Ohgaki
There no tag, but a function wordwrap(). http://www.php.net/manual/en/function.wordwrap.php You need to separate vars into message and comments also. Programming in any language w/o reading manual/reference is just a waste of time. IMO. Regards, -- Yasuo Ohgaki ""shawn"" <[EMAIL PROTECTED]> wr

RE: [PHP] wordwrap

2001-05-05 Thread Jeff Oien
> Is there a tag in php that acts like "wordwrap=virtual" does in html? I > have a script that is sending out variables in a email from a contact > form, but for a comments section it will not wordwrap in the email. > Thanks > > Shawn You need to use line breaks \n for lines to wrap in email.

Re: [PHP] wordwrap() in php4.03pl1 does not work(?)

2001-03-19 Thread Tiki
It's working for me. How is your call coded? "Nicole Lallande" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Sheesh - I forgot - the function is wordwrap() > > Nicole Lallande wrote: > > > > Hi All, > > > > Am trying to use this function which in the manual

Re: [PHP] wordwrap() in php4.03pl1 does not work(?)

2001-03-12 Thread Nicole Lallande
Sheesh - I forgot - the function is wordwrap() Nicole Lallande wrote: > > Hi All, > > Am trying to use this function which in the manual is defined as working > in versions of php > 4.02 -- well, I qualify - but the feature does not > work. Anyone know what is going on? > > TIA, > > Nicole