File: src/helper.php

Recommend this page to a friend!
  Classes of Michael Scribellito  >  PHP String Functions  >  src/helper.php  >  Download  
File: src/helper.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP String Functions
Wrapper class to treat strings as object
Author: By
Last change: Merge branch 'master' of https://github.com/mscribellito/Str
Date: 1 year ago
Size: 392 bytes
 

 

Contents

Class file image Download
<?php

use mscribellito\Str;

if (!
function_exists('Str')) {
   
/**
   * Instantiates a new Str.
   *
   * @param mixed $original a string
   * @param int $offset the initial offset
   * @param int $count the length
   *
   * @throws OutOfBoundsException
   */
   
function Str($original = '', $offset = null, $count = null)
    {
        return new
Str($original, $offset, $count);
    }
}


For more information send a message to info at phpclasses dot org.