for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace API\Helpers;
function starts_with($haystack, $needle, $case_sensitive = true)
{
if ($case_sensitive) {
return strpos($haystack, $needle) === 0;
} else {
return stripos($haystack, $needle) === 0;
}