bapi Posted September 10, 2007 Share Posted September 10, 2007 Hi, How can i do this : Text = "yetrwueyrkw sjdfgskjdhfg kdjfgskjdfhgk dhfgskjdfhgs kjfhgskjf gskdjfh slkjdfhsl f" echo text = "yetrwueyrkw sjdfgskjdhfg kdjfgskjdfhgk....." How can i do this? any help Quote Link to comment https://forums.phpfreaks.com/topic/68680-reduce-text/ Share on other sites More sharing options...
AndyB Posted September 10, 2007 Share Posted September 10, 2007 http://ca.php.net/manual/en/function.substr.php Quote Link to comment https://forums.phpfreaks.com/topic/68680-reduce-text/#findComment-345225 Share on other sites More sharing options...
bapi Posted September 10, 2007 Author Share Posted September 10, 2007 that won't help me bcoz i want .... to be start from scape Quote Link to comment https://forums.phpfreaks.com/topic/68680-reduce-text/#findComment-345226 Share on other sites More sharing options...
jagat21 Posted September 10, 2007 Share Posted September 10, 2007 Hi, try this. $txt = "yetrwueyrkw sjdfgskjdhfg kdjfgskjdfhgk dhfgskjdfhgs kjfhgskjf gskdjfh slkjdfhsl f"; echo $txt; $newtext = wordwrap($txt, 20); echo "<br>" . $newtext . "...."; Quote Link to comment https://forums.phpfreaks.com/topic/68680-reduce-text/#findComment-345229 Share on other sites More sharing options...
bapi Posted September 10, 2007 Author Share Posted September 10, 2007 thanks Quote Link to comment https://forums.phpfreaks.com/topic/68680-reduce-text/#findComment-345230 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.