PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have a some news that im loading into a cell. You can see the actual page here. (take a look at the section towards the bottom that says Todays hot news). http://www.poshinteriors.com/09/news/
I only want to be able to display no more than 250 Characters. Does anyone know a nifty way to do this in a cell?
fastnews-code.php is the form that actually loads the text from a text document. Would it be eaiser to load the first 250 characters from the text file, or do it the way im doing it? If so..how
This will return only the first 250 characters. If there are less characters, they will all be displayed and you will have wasted a little processing power by retrieving them in this manner. However, if you check it first with strlen () you're still wasting a function call so might as well just apply substr ().