Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.13 KB

README.md

File metadata and controls

28 lines (20 loc) · 1.13 KB

PHP String functions

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