I have a variable that breaks and it breaks when viewing the page source. How would I have the variable join together into one line when I view the page source.
Viewing The Source From:
This
is my sentence.
Viewing The Source To:
This is my sentence.
<?php
$test = "This
is my sentence.";
$text = explode("\n",$test);
echo trim($text[0].$text[1]);
?>