CakeDC\Users\Auth\SimpleRbacAuthorize::_startsWith PHP Method

_startsWith() protected method

Checks if $heystack begins with $needle
See also: http://stackoverflow.com/a/7168986/2588539
protected _startsWith ( string $haystack, string $needle ) : boolean
$haystack string The whole string
$needle string The beginning to check
return boolean
    protected function _startsWith($haystack, $needle)
    {
        return substr($haystack, 0, strlen($needle)) === $needle;
    }