Link to home
Start Free TrialLog in
Avatar of www-i-p-mu
www-i-p-mu

asked on

Diminish character length in php

Hi expert;

Am trying to diminish text retrieve from my database for my site search engine. When someone make a query to the database if his query was found into the database the result will be display a text corresponding to the description of the search. My problem is that it return all text from my database and I dont want the seach to return all the text but only a small define paragraph. Is there a function which will permit me to split the length of the text? i.e. if the text result is more than 15 words the text will automotically split into two and the second part will only be displayed if the user click on the search result link.

Please advise.
ASKER CERTIFIED SOLUTION
Avatar of dantuma
dantuma

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of www-i-p-mu
www-i-p-mu

ASKER

thx dantuma,

Your solution work like i expect

www.i-p.mu