baguette/string-functions

0.4.1 2016-07-16 14:42 UTC

This package is not auto-updated.

Last update: 2024-12-21 21:19:40 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