Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 494 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 494 Bytes

Stringy

Build Status

Simple wrapper class for PHP string functions

Requirements

The minimum requirement is PHP 5.4.

Usage

Using the helper function str()

  str('FooBar')->charAt(0)->length();

or creating a new instance manually

  $string = new \String\Stringy('FooBarQux');  // 1
  $string->slice(3, 3)->equals('Bar');  // true