I am having a brain lock.. so I hope somebody can help me here.
I have a string that contains alphanumeric data (and spaces) and new lines.
$string="data\ndata\ndata\n"
I want to insert "MAN**" at the beginning of every line so that the string will be changed to:
$string="MANdata\nMANdata\nMan**data\n"
I've tired a few different combinations with ereg_replace but I can't get it right.
Can anybody help me? Thanx.