Arikaim CMS

Tests
in package

Template tests functions

Table of Contents

Methods

isObject()  : bool
Return true if var is object
isString()  : bool
Return true if var is string
versionCompare()  : bool
Compare version (if requiredVersion is > currentVersion retrun true)

Methods

isObject()

Return true if var is object

public static isObject(mixed $var) : bool
Parameters
$var : mixed
Return values
bool

isString()

Return true if var is string

public static isString(mixed $var) : bool
Parameters
$var : mixed
Return values
bool

versionCompare()

Compare version (if requiredVersion is > currentVersion retrun true)

public static versionCompare(string|null $requiredVersion, string|null $currentVersion) : bool
Parameters
$requiredVersion : string|null
$currentVersion : string|null
Return values
bool

        
On this page

Search results