I have stored in my table more then 100 characters. but i want to retrieve only 40 characters and display the message only 4 lines ,–each line get in 10 characters only . Please give me some idea for this task
Sorry , I need another clarification how to split the words.
I have stored in my table more then 100 words but i want to retrieve only 40 words and display the message only 4 lines ,--each line get in 10 words only .
@GenixdeaeJul 24.2006 — #[URL=http://us3.php.net/explode]explode()[/URL] You'll have to mess with this on your own, i'm hazy on explode and it's abilities [code=php]$text = "your text"; explode(" ", $text);[/code]
ps:shane, i did it <br> because it's midnight and i'm tired and lazy :p , but i usually do <br /> also