Text string to multiple lines
I have the follow code, but all it outputs is F
PHP Code:
<?php
$str_value = "Feel free to use the regular|expression we made above on your own site to validate|email addresses, or modify it for your own purposes.";
for($i=0; $i<sizeof($str_value); $i++) {
$line = trim($str_value[$i]);
$arr = explode("|",$line);
$pg = 3600;
$pg += 100;
$text = "". implode($arr) ."";
echo $text ."<br>\n";
}
?>
It should output:
Feel free to use the regular
expression we made above on your own site to validate
email addresses, or modify it for your own purposes.
Any ideas?