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!