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 Link to comment https://forums.phpfreaks.com/topic/146260-display-so-many-characters/ 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 Link to comment https://forums.phpfreaks.com/topic/146260-display-so-many-characters/#findComment-767851 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 Link to comment https://forums.phpfreaks.com/topic/146260-display-so-many-characters/#findComment-767856 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.