Rename to remove abbreviation

This commit is contained in:
Zach Borboa
2018-06-21 23:54:52 -07:00
parent 7ba91bd554
commit ee89e5fd67
2 changed files with 7 additions and 7 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
namespace Curl;
class StringUtil
{
/**
* Return true when $haystack starts with $needle.
*
* @access public
* @param $haystack
* @param $needle
*
* @return bool
*/
public static function startsWith($haystack, $needle)
{
return \mb_substr($haystack, 0, \mb_strlen($needle)) === $needle;
}
}