mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-10-19 18:37:28 +00:00
Rename to remove abbreviation
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user