Hey, I checked your functions by running the script at the bottom and the outputted text was blank shown below. Note I corrected a parse error in your solution:
<?
$string = "Am I correct to defend the fist that holds this pen?<br />
It's ink that lies,<br />
the pen, the page, the paper.<br />
I live, I learn.<br />
You will always take what i have earned.<br />
And so aid my end while I believe I'm winning.";
$string2 = "Good to know that if I had attention";
$string = str_replace("<br />", "", $string);
$string2 = preg_replace("\n(.)/e", strtoupper('\\1'), $string2);
$string = preg_replace("\b(.)/e", strtoupper('\\1'), $string);
echo "String 1: $string<br>"; // Returned value of String 1:
echo "String 2: $string2<br>"; // Returned value of String 2:
?>
I'd be greatful if you could show me what is the problem. Thanx