Re: breaking apart data

From: Date: Tue, 20 Jan 2004 22:35:01 +0000
Subject: Re: breaking apart data
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-32529@lists.php.net to get a copy of this message
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 css classes <script language="php"> function bulletElements( &$arrElement, $key ) {
    echo '<li>' . $arrElement . '</li>';
} $str = "asdf asdf sadl jf lsakdjf a \r\n asdfierw aweiufasd asiuwr \r\nasdhfauiweuhrahsd \r\n"; array_walk( explode( "\r\n", $str ), 'bulletElements' ); </script> That should do the trick. Chris -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Larry R. Sieting

« previous php.db (#32529) next »