nathaliamota Posted September 11, 2008 Share Posted September 11, 2008 ??? Is there a way to split long text content that is being dynamically pulled from a MySQL database through a combination of PHP and SQL through the use of regular expressions and a bit of CSS? Can anyone give me an example of this? I know how to split static text content into two columns with CSS, but not text content that is being dynamically pulled from a database... Note: When splitting the text content into two separate columns, I don't want to split words in half. I want to split the content at a space character. I really appreciate the help of anyone that responds to this post. I need to figure this out for a project. Thank you! Link to comment https://forums.phpfreaks.com/topic/123700-splitting-dynamic-content-into-two-columns/ Share on other sites More sharing options...
Caesar Posted September 11, 2008 Share Posted September 11, 2008 Rows or columns? <?php $str = "This here be some fly ass text yo."; $newstr = wordwrap($sr, 20, "<br />\n"); ?> Link to comment https://forums.phpfreaks.com/topic/123700-splitting-dynamic-content-into-two-columns/#findComment-638755 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.