Browse: Home / Classes /

Str

Str

A helper class to provide string manipulation methods.


Description #


Source #

File: src/Core/Utilities/Str.php


Changelog #

Changelog
Version Description
4.6.0 Introduced.


Methods #

  • before — Gets the portion of a string before the first occurrence of a given value.
  • contains — Determines if a given string contains a given substring.
  • contains_all — Determine if a given string contains all needles.
  • mask — Masks a portion of a string with a repeated character.
  • replace_first — Replaces the first occurrence of a given value in the string.
  • replace_last — Replaces the last occurrence of a given value in the string.
  • starts_with — Determines if a given string starts with a given substring.