laravel-audit

IniConverter
in package

Converts ini values to php values.

Table of Contents

Methods

convertValue()  : string|int|bool|null
Retrieves an ini key and converts it into a php value.

Methods

convertValue()

Retrieves an ini key and converts it into a php value.

public static convertValue(string $key) : string|int|bool|null

The value is retrieved using ini_get().

If the value does not exist, null is returned.

If the value is numeric, an int is returned.

If the value is 1, on, yes, or true, then true is returned. Case-insensitive.

If the value is 0, off, no, or false, then false is returned. Case-insensitive.

Otherwise, the value is returned as string.

Parameters
$key : string
Return values
string|int|bool|null

        
On this page

Search results