houssam_ballout Posted February 13, 2012 Share Posted February 13, 2012 Hello, I had this case: Text is stored in mysql table in the means of html, i.e. it contains <p> ,<br /> .... I want to display it on a php page, I had 2 questions: I want to display the first 400 characters, then the second 300 each on different <div> , so I need to save them each on different variable? and what about html tags? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/257083-php-text-manipulation/ Share on other sites More sharing options...
jcbones Posted February 14, 2012 Share Posted February 14, 2012 What if the 400th character breaks a word boundary? Does the 400 character limit INCLUDE HTML? Do you only want <p> and <br />? Quote Link to comment https://forums.phpfreaks.com/topic/257083-php-text-manipulation/#findComment-1317954 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.