User Tools

Site Tools


uphp:functions:nvram_get

nvram_get

WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0

Get a value from NVRAM

Description

mixed nvram_get ( string $key )

Parameter

$key: String variable name to get associated value for

Return Values

Mixed: The value from NVRAM - depending on the value it will either return a string, an integer or a float. This is automatically done based on the contents of the variable. The actual value in NVRAM is always stored as a string. If the value is not found it returns int 0.

Example

<?
  $res=nvram_get("myvariable");
  if ($res) {
    print("The NVRAM Variable myvariable contains: ".$res);
  }
?>

See Also

nvram_set() - Set a key and value in NVRAM

uphp/functions/nvram_get.txt · Last modified: 2021/09/13 05:57 (external edit)