\lloc\MslsMslsLanguageArray

Stores the language input from post

Examples

** File not found : https://gist.githubusercontent.com/lloc/2c232cef3f910acf692f/raw/c78a78b42cb4c9e97a118523f7497f02b838a2ee/MslsLanguageArray.php **

Summary

Methods
Properties
Constants
__construct()
set()
get_val()
get_arr()
No public properties found
No constants found
No protected methods found
$arr
N/A
No private methods found
No private properties found
N/A

Properties

$arr

$arr : array

Generic container

Type

array

Methods

__construct()

__construct(array  $arr = array()) 

Constructor

Parameters

array $arr

set()

set(string  $key, mixed  $value) : \lloc\Msls\MslsLanguageArray

Set a key-value-pair - $key must be a string of length >= 2 - $value must be an integer > 0

Parameters

string $key
mixed $value

Returns

\lloc\Msls\MslsLanguageArray

get_val()

get_val(string  $key) : integer

Get the value of the element with the specified key

Parameters

string $key

Returns

integer

get_arr()

get_arr(string  $key = '') : array

Get the filtered array without the specified element

Parameters

string $key

Returns

array