serve/vendor/danielstjules/stringy/srcCreate.php

Functions

create()

create(mixed  $str, string  $encoding = null) : \Stringy\Stringy

Creates a Stringy object and returns it on success.

Parameters

mixed $str

Value to modify, after being cast to string

string $encoding

The character encoding

Throws

\InvalidArgumentException

if an array or object without a __toString method is passed as the first argument

Returns

\Stringy\Stringy —

A Stringy object