baguette/string-functions

0.4.1 2016-07-16 14:42 UTC

README

Package version Scrutinizer Code Quality Build Status Packagist Coverage Status

Installation

composer require baguette/string-functions

Functions

bool str_start_with(string $haystack, string $needle)

var_dump(str_start_with('Windows', 'Win')); // => true

bool str_end_with(string $haystack, string $needle)

var_dump(str_end_with('FooClassTest', 'Test')); // => true