php_like
Description
SQL Like operator in PHP.
Usage
<?php
use function Qubus\Support\Helpers\php_like;
php_like(string $pattern, string $subject): bool;
Parameters
$pattern (string) (required) Search term.
$subject (string) (required) The text to search for.
Return Value
(bool) Will return true
if found, false
otherwise.
Example
<?php
php_like('%uc%','Lucy'); //true
php_like('%cy', 'Lucy'); //true
php_like('lu%', 'Lucy'); //true
php_like('%lu', 'Lucy'); //false
php_like('cy%', 'Lucy'); //false