original_string: public static function stringStartsWith($haystack, $needle)
      {
          if (!is_string($haystack) || !is_string($needle)) {
              throw new \InvalidArgumentException('Not a string');
          }
  
          return strpos($haystack, $needle) === 0;
      }
code: public static function stringStartsWith($haystack, $needle)
      {
          if (!is_string($haystack) || !is_string($needle)) {
              throw new \InvalidArgumentException('Not a string');
          }
  
          return strpos($haystack, $needle) === 0;
      }
code_tokens: public static function stringStartsWith ( $ haystack , $ needle ) { if ( ! is_string ( $ haystack ) || ! is_string ( $ needle ) ) { throw new \ InvalidArgumentException ( 'Not a string' ) ; } return strpos ( $ haystack , $ needle ) === 0 ; }
docstring: Determine if a string starts with a particular sequence.
  
  @param string $haystack
  @param string $needle
  
  @throws \InvalidArgumentException
  
  @return bool
docstring_tokens: Determine if a string starts with a particular sequence .