seany123 Posted November 23, 2009 Share Posted November 23, 2009 when i echo this code: <?php echo $news['message'];?> i get this: "TESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTEST " its currently just going straight across my screen... me needing to scroll right to see it all... instead i was wondering if it was possible to create a line break every 20 or so characters... or if there was another way of doing this? Quote Link to comment https://forums.phpfreaks.com/topic/182580-putting-a-line-break-every-20-characters/ Share on other sites More sharing options...
premiso Posted November 23, 2009 Share Posted November 23, 2009 Look into wordwrap as that should do what you want. Quote Link to comment https://forums.phpfreaks.com/topic/182580-putting-a-line-break-every-20-characters/#findComment-963682 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.