I have this article that's like 300 words. It is stored in a table in database mysql. I need to display only a few words from this article in the front page then print "read full article"
is there a specific function in PHP that allows me to give it the string variable (the whole article after it's been queried from the db) , and... the number of spaces to count before stopping so that I can tell it something like:
$article_motivation = give_me_few_words( $article, " ", 20 );
meaning look for 20 spaces (.. 20 words..) and stop and return me that string.