> Make it with your sql query, it will be faster: > SELECT ..., IF(LENGTH(text)>50, CONCAT(SUBSTRING(text,0,50),'...'), > text) as text
I won't outright disagree, but warn fkessen to be careful. There are some scenarios in which that would not be faster. -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php