User Tools

Site Tools


uphp:functions:nvram_get

This is an old revision of the document!


nvram_get

WMPRO, WMMINI FW >= 1.1015 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: value from NVRAM - depending on the value it will either return a string, and int 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 0.

Example

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

See Also

nvram_set() - Set a value in NVRAM</html>

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