Login   Register  
PHP Classes
elePHPant
Icontem

Highlight: Find and highlight a text expression in a sentence

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2005-09-20 (8 years ago) RSS 2.0 feedStarStarStarStar 65%Total: 1,444 This week: 1All time: 2,484 This week: 1,491Up
Version License Categories  
highlight 1.0.0GNU General Public Lice...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: 42
All time rank: 831 in Switzerland Switzerland
Week rank: 382 Down3 in Switzerland Switzerland Down

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

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,444All time:2,484
 This week:1This week:1,491Up
User Ratings User Comments (1)  
 All time
Utility:93%StarStarStarStarStar
Consistency:93%StarStarStarStarStar
Documentation:-
Examples:93%StarStarStarStarStar
Tests:-
Videos:-
Overall:65%StarStarStarStar
Rank:453
 
good for static web sites
3 years ago (pkrishna)
52%StarStarStar