Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 363 Bytes

File metadata and controls

16 lines (11 loc) · 363 Bytes

longestCommonSubstring

Returns the longest common substring between the string and $otherStr.

Description

static longestCommonSubstring(string $otherStr)

In the case of ties, it returns that which occurs first.

Parameters

  • string $otherStr
    Second string for comparison

Return Value

static
String being the longest common substring