longestCommonPrefix

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

Description

static longestCommonPrefix(string $otherStr)

Parameters

  • string $otherStr
    Second string for comparison

Return Value

static
String being the longest common prefix