phpDocumentor

StringHelper
in package
implements StringHelperInterface, CrossCuttingObjectInterface

Class StringHelper

Tags
category

System

subpackage

Helpers

implements

StringHelperInterface, CrossCuttingObjectInterface

Interfaces, Classes and Traits

StringHelperInterface
Interface StringHelper
CrossCuttingObjectInterface
Interface CrossCuttingObjectInterface

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