PHP Classes

PHP String Cut: Cut, remove or extract parts of a text string

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 525 This week: 1All time: 5,680 This week: 571Up
Version License PHP version Categories
string-cut 0.9Free for non-comm...3.0PHP 5, Text processing
Description 

Author

This class can cut, remove or extract parts of a text string.

It takes a text string and can perform several types of operations to manipulate parts of its contents. Currently it can:

- Extract a part of a string between two delimiters
- Extract a part of a string between a start delimiter and a given occurence of the end delimiter
- Remove the part of a string located between two delimiter
- Extract a part of a string between two containers or delimiters until the container is complete
- Extract a part of a string between a start position and the occurence of an end delimiter
- Extract a part of a string between a delimiter and the end of the string

Innovation Award
PHP Programming Innovation award nominee
March 2014
Number 5


Prize: One downloadable copy of Komodo IDE
PHP has plenty of functions to extract parts of text strings based on the positions of the characters to be extracted.

However in some cases you do not know the exact positions of the range of text you want because it is relative to certain delimiters that can be anywhere in the text.

This class makes it easy to extract text that may be contained in relative positions of certain text range delimiter marks, like for instance certain HTML marks.

Manuel Lemos
Picture of Schroetter Christian
Name: Schroetter Christian <contact>
Classes: 5 packages by
Country: France France
Age: 46
All time rank: 180452 in France France
Week rank: 420 Up14 in France France Up
Innovation award
Innovation award
Nominee: 3x

Winner: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file index.php Example Sample file
Accessible without login Plain text file sample_content.txt Example Sample content file
Plain text file string.cut.class.php Class Class file

 Version Control Unique User Downloads Download Rankings  
 0%
Total:525
This week:1
All time:5,680
This week:571Up