for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Rogierw\RwAcme\Support;
class Str
{
public static function contains($haystack, $needles): bool
foreach ((array) $needles as $needle) {
if ($needle !== '' && mb_strpos($haystack, $needle) !== false) {
return true;
}
return false;
public static function endsWith($haystack, $needles)
if (substr($haystack, -strlen($needle)) === (string) $needle) {