original_string: public static function indexOf($string, $substring, $offset = null)
  	{
  		//get the position of this string in the main string
  		$position = strpos($string, $substring, $offset);
  
  		//return -1 of the substring was not found
  		if( ! is_int($position) )
  		{
  			//return string position  as -1
  			return -1;
  
  		}
  
  		//return actual string position if found
  		return $position;
  	}
code: public static function indexOf($string, $substring, $offset = null)
  	{
  		//get the position of this string in the main string
  		$position = strpos($string, $substring, $offset);
  
  		//return -1 of the substring was not found
  		if( ! is_int($position) )
  		{
  			//return string position  as -1
  			return -1;
  
  		}
  
  		//return actual string position if found
  		return $position;
  	}
code_tokens: public static function indexOf ( $ string , $ substring , $ offset = null ) { //get the position of this string in the main string $ position = strpos ( $ string , $ substring , $ offset ) ; //return -1 of the substring was not found if ( ! is_int ( $ position ) ) { //return string position  as -1 return - 1 ; } //return actual string position if found return $ position ; }
docstring: This method determines substrings within larger strings
  
  @param string $string The main sting against which to check for substring
  @param string $substring The substring to check for
  @param int $offset The offset value to start from
  @return int The position of the substring in the main string
docstring_tokens: This method determines substrings within larger strings