PHP wordwrap() issue
I'm working on my new site and I'm currently having some difficulties with a wordwrap issue. I got a comment section on my page and the page layout can be messed up if they make the comment to big with out the uses of space's if you understand what I mean, I am trying to stop this with the worwrap function in PHP and it does not seem to be solving the issue at all.
Could any one look at this code and suggest any amendments.
<?php echo $entry;
$newentry = wordwrap( $text, 40 );
echo "$newentry\n";?><br /><br />
Posted on <?php echo $date; ?>```
Thank You.
What_A_Legend wrote: I'm working on my new site and I'm currently having some difficulties with a wordwrap issue. I got a comment section on my page and the page layout can be messed up if they make the comment to big with out the uses of space's if you understand what I mean, I am trying to stop this with the worwrap function in PHP and it does not seem to be solving the issue at all.
Could any one look at this code and suggest any amendments.
<?php echo $entry;
$newentry = wordwrap( $text, 40 );
echo "$newentry\n";?><br /><br />
Posted on <?php echo $date; ?>```
Thank You.
```markup
<?php
echo $title . "</strong><br /><br />" . $entry;
$newentry = wordwrap( $text, 40, "<br />");
echo $newentry . "<br /><br /><br />
Posted on " . $date;
?>
Try that.