Documentation

strings.php

Table of Contents

Functions

str_find()  : bool
Searches for a string within another string based on a list and returns true if one of the items from the list was found.
pluralize()  : string
Pluralizes a word.
singularize()  : string
Singularizes a word.

Functions

str_find()

Searches for a string within another string based on a list and returns true if one of the items from the list was found.

str_find(string $haystack, array<string|int, mixed> $needles) : bool
Parameters
$haystack : string
$needles : array<string|int, mixed>
Return values
bool

pluralize()

Pluralizes a word.

pluralize(string $word) : string
Parameters
$word : string
Return values
string

singularize()

Singularizes a word.

singularize(string $word) : string
Parameters
$word : string
Return values
string

        
On this page

Search results