PHP Classes

Highlight: Find and highlight a text expression in a sentence

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 63%Total: 1,484 All time: 2,637 This week: 488Up
Version License Categories
highlight 1.0.0GNU General Publi...HTML, Text processing
Description 

Author

This is a very simple class that can search for a given text expression in a longer sentence and highlight it.

The class determine if the search text is present in the sentence. If present, it returns the HTML of the whole sentence marking all occurences with red background color.

Picture of Alf-Red
Name: Alf-Red <contact>
Classes: 9 packages by
Country: Switzerland Switzerland
Age: 52
All time rank: 862 in Switzerland Switzerland
Week rank: 214 Down3 in Switzerland Switzerland Down

  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file demo.php Example demo file
Plain text file highlight.class.php Class class file

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,484
This week:0
All time:2,637
This week:488Up
User Ratings User Comments (1)
 All time
Utility:90%StarStarStarStarStar
Consistency:90%StarStarStarStarStar
Documentation:-
Examples:90%StarStarStarStarStar
Tests:-
Videos:-
Overall:63%StarStarStarStar
Rank:860
 
good for static web sites
13 years ago (pkrishna)
52%StarStarStar