for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by gerk on 29.11.17 07:01
*/
namespace PeekAndPoke\Component\Psi\Psi\Str;
*
* @author Karsten J. Gerber <[email protected]>
class StartingWith extends AbstractStringMatch
{
* @param string $needle
* @param string $haystack
* @return bool
public function match($needle, $haystack)
/** @noinspection SubStrUsedAsStrPosInspection */
return substr($haystack, 0, strlen($needle)) === $needle;
}