for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Wabel\Zoho\CRM\Helpers;
class UtilsHelper
{
/**
* @param string $haystack
* @param string $needle
* @return bool
*/
public static function endsWith($haystack, $needle)
$length = strlen($needle);
if ($length === 0) {
return true;
}
return (substr($haystack, -$length) === $needle);