I was just migrating my site over to MySQL vs. using a PHP generated "text" db when I realized I may possibly be able to better make a portion of my site now. I might also be able to eliminate an entire page/table from the DB.
What I want to do is extract a set amount of or length of text from an article and use it as a summary. Currently, I have a separate file which contains hand made summaries of these articles.
The only way I currently have in mind is to use a
for ($i = 0; $i < $length_of_string/3); $++)
type of deal. Don't get me wrong, I love my for loops but I'm sure there is a better and more efficient way of performing this task.