Docs Goabase

Replace
in package

Some tools for special replacement

Table of Contents

cleanComment()  : array<string|int, mixed>|string
Helper preg_replace Returns text/code without comments
cleanNum()  : mixed
Cuts zeros at the end
cleanWWW()  : string
Removes https://, https://www., http://, http://www., www.
getAllowedAtt()  : array<string|int, mixed>
userName()  : string

Methods

cleanComment()

Helper preg_replace Returns text/code without comments

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

cleanNum()

Cuts zeros at the end

public static cleanNum(mixed $num) : mixed
Parameters
$num : mixed
Return values
mixed

cleanWWW()

Removes https://, https://www., http://, http://www., www.

public static cleanWWW(string $val) : string
Parameters
$val : string
Return values
string

getAllowedAtt()

public static getAllowedAtt([array<string|int, mixed> $saAtt = [] ][, string $type = 'party' ]) : array<string|int, mixed>
Parameters
$saAtt : array<string|int, mixed> = []
$type : string = 'party'
Return values
array<string|int, mixed>

userName()

public static userName(string $strUserPublicName, string $strTopic) : string
Parameters
$strUserPublicName : string
$strTopic : string
Return values
string

Search results