View Single Post
Old 12-10-2010, 11:55 AM  
Kiopa_Matt
Confirmed User
 
Industry Role:
Join Date: Oct 2007
Posts: 1,448
Code:
$lines = explode("\n", $contents);
$new_content = implode("\n", array_map('format_line', $lines));

function format_line($line) {
     $line = '+' . preg_replace("/\s/", "\s+", $line);
     return $line;
}
Or something like that at least should work.
__________________
xMarkPro -- Ultimate Blog Network Management
Streamline your marketing operations. Centralize management of domains, pages, Wordpress blogs, sponsors, link codes, media items, sales and traffic statistics, plus more!

Last edited by Kiopa_Matt; 12-10-2010 at 11:57 AM..
Kiopa_Matt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote