Skip to main content

gf_global()

public static function gf_global( $echo=true, $return_array=false )

Outputs the gf_global and returns either the gf_global var declaration or the array containing the gf_global values.

Since:

  • 2.4.7 (Added the $return_array parameter)
  • unknown

Source: common.php:5812

Parameters

NameTypeDefaultDescription
$echobooltrueIf true, outputs the inline gf_global var declaration.
$return_arrayboolfalseIf true, returns the array containing the gf_global values.

Returns

  • array | string