replaceBeginning

Replaces all occurrences of $search from the beginning of string with $replacement.

Description

static replaceBeginning(string $search, string $replacement)

Parameters

  • string $search

  • string $replacement

Return Value

static