sfw_var

Description

Stores vars inside the main class.

Use one parameter as getter, use two parameters as setter. This is done to reduce the use of globals.

Since: 1.0.0

Code

<?php function sfw_var( $key, $value = null ){ 
	 … 
 } ?>

Parameter

$key
(string) A key that identifies the variable
$value
(mixed) Any value

Default: null

Return

(mixed) A previously set value or nothing.

File

core/utils.php