phpDocumentor

StringHelperInterface

Interface StringHelper

Tags
category

System

subpackage

Helpers

Table of Contents

convertNullValuesToStringInArray()  : array<string|int, mixed>
Converts NULL values to empty string inside an array
correctToValidFilename()  : string
Returns a cleaned filename by removing or replacing invalid characters.

Methods

convertNullValuesToStringInArray()

Converts NULL values to empty string inside an array

public convertNullValuesToStringInArray(array<string|int, mixed> $array) : array<string|int, mixed>
Parameters
$array : array<string|int, mixed>
Return values
array<string|int, mixed>

correctToValidFilename()

Returns a cleaned filename by removing or replacing invalid characters.

public correctToValidFilename(string $p_filename) : string
Parameters
$p_filename : string
Tags
throws
InvalidArgumentException

if $p_filename is not a string

Return values
string

cleaned filename

Search results