I have a search page, and I want to return the results with a description which is limited to 255 characters.
After this the rest of the text is not displayed.
Does anyone know the best way to go about this???
Try...
$word = substr($word,0,255);
I think this will do it:
$var = $yourvar; $newvar = substr($var, 0, 255);
Damn dankstick you beat me by a few seconds!
Excellent thanks for such a swift response guys.