PHP Classes

PHP Get All Words: Extract all words from string excluding stop words

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 48%Total: 369 All time: 6,798 This week: 190Up
Version License PHP version Categories
get-words 1.0.0GNU General Publi...5PHP 5, Text processing


This class can extract all words from string excluding stop words.

It can take a given text string and extracts the list of all words it contains to a array.

An optional list of stop words may be provided to be excluded from the list of words to return.

The class may lower the case of the words to consider words with upper and lower case letters the same.


Get all words in sentence
Some class to get all of words in sentence

Innovation Award
PHP Programming Innovation award nominee
April 2016
Number 13

Prize: One ebook of choice by Packt
PHP provides an extensive set of functions to manipulate text strings including several ways to split a string into its words.

However, there is no built-in way to detect and exclude stop words.

This class can extract the words of a text excluding stop words. I can also consider words that may appear duplicated but with different case.

Manuel Lemos
Picture of Lionel F. Lebeau
  Performance   Level  
Name: Lionel F. Lebeau <contact>
Classes: 4 packages by
Country: France France
Age: 62
All time rank: 244968 in France France
Week rank: 373 Up13 in France France Up
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Accessible without login Plain text file Examples.php Example Examples
Plain text file get_words.php Class class to get words

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:6,798
This week:190Up
 User Ratings  
 All time