- assert: documentation ( source)
- str_contains: documentation ( source)
- str_starts_with: documentation ( source)
- str_ends_with: documentation ( source)
<?php
declare(strict_types=1);
assert(str_contains('Ahoy World!', 'Ahoy') === true);
assert(str_contains('Ahoy World!', 'Hello') === false);
assert(str_starts_with('Ahoy World!', 'Ahoy') === true);
assert(str_starts_with('AhoyWorld', 'Hello') === false);
assert(str_ends_with('Ahoy World!', 'World!') === true);
assert(str_ends_with('Ahoy World!', 'Ahoy') === false);