WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0
Get a value from NVRAM
$key: String variable name to get associated value for
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.
<? $res=nvram_get("myvariable"); if ($res) { print("The NVRAM Variable myvariable contains: ".$res); } ?>
nvram_set() - Set a key and value in NVRAM