method hasSlash documentation in bbn\Str

Returns "true" if slash or backslash are present.

Example

X::dump(\bbn\Str::hasSlash("Paul")); // (bool) false X::dump(\bbn\Str::hasSlash("Paul/"); // (bool) 1 X::dump(\bbn\Str::hasSlash("Paul\\"); // (bool) 1 function() { $args = \func_get_args(); foreach ($args as $a){ if ((strpos($a, '/') !== false) || (strpos($a, '\\') !== false)) { return true; } } return false; }

Returns "true" if slash or backslash are present. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.