Brimbox Logo Brimbox Version 2.3.4 Released

state>>

Method to return the state value from a state array ($arr_state), will return default specified or empty string if not set.

Class: bb_work, called as $main

File: bb_work.php (php)

Declaration:

function state($name, $arr_state, $default = "")

Usage:

$value = $main->state($name, $arr_state);

Returns: string containing the state value for the name specified, default if state is not set.

Parameter: $name (string)
Name of the state node.

Parameter: $arr_state (array)
Variable containing the state to retrieve the value from.

Parameter: $default (optional string)
Value returned if state of variable specified is not set in $arr_state.

Updated: 2016-07-08