Skip to content

Smarty_Internal_Method_GetGlobal

Smarty Method GetGlobal

Smarty::getGlobal() method

  • Full name: \Smarty_Internal_Method_GetGlobal

Properties

objMap

Valid for all objects

public int $objMap

Methods

getGlobal

Returns a single or all global variables

public getGlobal(\Smarty_Internal_Data $data, string $varName = null): string|array

Parameters:

Parameter Type Description
$data \Smarty_Internal_Data
$varName string variable name or null

Return Value:

variable value or or array of variables



Automatically generated on 2025-03-18