StringFilter
in package
Class StringFilter.
Table of Contents
- $subjects : array<string|int, mixed>
- __construct() : mixed
- StringFilter constructor.
- trim() : array<string|int, string|null>
- Nullsafe trim. Trims the array of string values, or sets their value when invalid or empty.
Properties
$subjects
private
array<string|int, mixed>
$subjects
Methods
__construct()
StringFilter constructor.
public
__construct(array<string|int, string|null> $subjects) : mixed
Parameters
- $subjects : array<string|int, string|null>
-
an array of string or null values
Return values
mixed —trim()
Nullsafe trim. Trims the array of string values, or sets their value when invalid or empty.
public
trim() : array<string|int, string|null>