jduffell Posted February 21, 2009 Share Posted February 21, 2009 Hi, is there a way to display so many characters. For example i'm retrieving a description from a database, however only wish to display so many characters and when a link is selected the full description page is opened. For example, the description is displayed with this paragraph tag but i only wish to display 50 characters, as it's only a glympse of the whole article echo "<p class='des'>$Row[des]</p>"; Cheers if anyone gets back Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted February 21, 2009 Share Posted February 21, 2009 You mean like you see on the phpfreaks homepage? Try using substr_replace Quote Link to comment Share on other sites More sharing options...
jduffell Posted February 21, 2009 Author Share Posted February 21, 2009 Yes great example, cheers for the advice Quote Link to comment 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.