Hi,
I'm working on returning some results from a DB and only want to return the first 100 characters. I've gotten to this point, but it seems to have problems...
<?
$text = $row1[NewsDescription];
preg_match('#^\s*(.{100,}?)\s+.*$#', $text, $match2);
echo $match2[0].' ...';
?>
that should return somthing like...
blah blah blah blah blah ...
but it doesnt work properly, is there a different way to achieve the same result?
Cheers
Ash:)
My new web design domain
www.askmultimedia.co.uk