Login   Register  
PHP Classes
elePHPant
Icontem

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

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 (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-03-04 (7 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 490 This week: 1All time: 5,346 This week: 1,410Up
Version License PHP version Categories  
string-cut 0.9Free for non-commercial...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: 36
All time rank: 201958 in France France
Week rank: 246 Up16 in France France Up
Innovation award
Innovation award
Nominee: 2x

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:490All time:5,346
 This week:1This week:1,410Up