PHP Classes

PHP String Functions: Wrapper class to treat strings as object

Recommend this page to a friend!
  Info   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 244 This week: 1All time: 7,989 This week: 560Up
Version License PHP version Categories
php-string-functions 13MIT/X Consortium ...5.3PHP 5, Text processing, Data types
Description 

Author

This package is a wrapper class to treat strings as object.

It can take a given string value with optional start offset and length to take it as the string initial value.

It provides functions to perform several types of operations on the string like:

- Get the character and its code at a given string position
- Compare with a given string optionally ignoring the case
- Concatenate the string with one or more other strings
- Check if the string contains or ends with another given string
- Format the string using sprintf
- Creates a new string with a character with a given code
- Get the position of the first or the last occurrence of a given text inside the string optionally ignoring the case
- Create a new string object joining elements of an array separated with a given delimiter character
- Match the string with regular expressions
- Pad the string with given character at the beginning or end of the string
- Etc..

Picture of Michael Scribellito
Name: Michael Scribellito <contact>
Classes: 1 package by
Country: United States United States
Age: ???
All time rank: 4002512 in United States United States
Week rank: 411 Up48 in United States United States Up

  Files folder image Files  
File Role Description
Files folder imagesrc (2 files)
Files folder imagetests (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
  Accessible without login Plain text file helper.php Example Example script
  Plain text file Str.php Class Class source

  Files folder image Files  /  tests  
File Role Description
  Accessible without login Plain text file StrTest.php Test Unit test script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:244
This week:1
All time:7,989
This week:560Up