> Thanks Chris... that worked great.
No worries.
> Guess I need to spend a _lot_ more time reading the manual.
It also helps alot just lurking on the list (this and/or PHP general).
I've been coding with PHP for almost 6 years and there're still new
things I learn all the time.
Chris
--
PHP
Thanks Chris... that worked great.
Guess I need to spend a _lot_ more time reading the manual.
At 11:28 AM 1/20/2004, Chris Boget wrote:
> duh (me)
> okay... I am wanting to wrap the lines of text in bullets and perform some
> text formatting on it (highlight, bold, underling, etc..) using cs
> duh (me)
> okay... I am wanting to wrap the lines of text in bullets and perform some
> text formatting on it (highlight, bold, underling, etc..) using css classes
function bulletElements( &$arrElement, $key ) {
echo '' . $arrElement . '';
}
$str = "asdf asdf sadl jf
You probably have more luck in a regular expression mailing list. Just an
opinion.
- Original Message -
From: "Larry R. Sieting" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 20, 2004 4:17 PM
Subject: Re: [PHP-DB] breaking apart data
> duh
duh (me)
okay... I am wanting to wrap the lines of text in bullets and perform some
text formatting on it (highlight, bold, underling, etc..) using css classes
At 11:12 AM 1/20/2004, you wrote:
From: "Larry R. Sieting" <[EMAIL PROTECTED]>
> what would be the most efficient way to rework th
From: "Larry R. Sieting" <[EMAIL PROTECTED]>
> what would be the most efficient way to rework this data in to what I am
> after
>
> stored text:
> asdf asdf sadl jf lsakdjf a \r\n asdfierw aweiufasd asiuwr \r\n
> asdhfauiweuhrahsd \r\n
>
> displays text as:
> asdf asdf sadl jf lsakdjf a
> asdf
HEllo,
I have some data stored in a database (mysql) that I need to break
apart. When I display it, I use the nl2br function.. works fine...
but I want to do some formatting to each line of text and need to break it
apart.
when I look at the raw data, it has the escape sequence \r\n (return\l