User Tools

Site Tools


uphp:functions:nvram_unset

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
uphp:functions:nvram_unset [2017/05/11 09:29]
admin
uphp:functions:nvram_unset [2021/09/13 05:57] (current)
Line 3: Line 3:
 <badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge> <badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge>
  
-Unset (clear) value in NVRAM for a particular key. +Clear <html><b><span style="color:blue">key<span style="color:black"></b></html> from <tooltip title="Non-Volatile RAM">NVRAM</tooltip>
  
 ====Description==== ====Description====
  
 <well size="sm"><html> <well size="sm"><html>
-<span style="color:green">int+<span style="font-size:125%;color:green">int
 <span style="color:black">nvram_unset ( <span style="color:black">nvram_unset (
 <span style="color:green">string <span style="color:green">string
Line 14: Line 14:
 <span style="color:black">) <span style="color:black">)
 </html></well> </html></well>
 +
 +This function will unset (clear) a value in <tooltip title="Non-Volatile RAM">NVRAM</tooltip> for a particular <html><b><span style="color:blue">key</b></html>
  
 ====Parameter==== ====Parameter====
  
-<html><b><span style="color:blue">$key<span style="color:black"></b></html>:  String variable name +<html><b><span style="color:blue">$key<span style="color:black"></b>:  <b><span style="color:green">String<span style="color:black"></b> variable name</html>
  
 ====Return Values==== ====Return Values====
  
-<html><b><span style="color:green">int<span style="color:black"></b></html>: returns 1 on success and 0 on failure+<html><b><span style="color:green">Integer<span style="color:black"></b></html>:  1 on success0 on failure
  
 ====Example==== ====Example====
Line 28: Line 30:
 <? <?
   $res=nvram_unset("myvariable");   $res=nvram_unset("myvariable");
-  if (!$res) +  if (!$res) print("Error clearing NVRAM key/value");
-    print("Error clearing NVRAM key/value"); +
-  } +
 ?> ?>
 </code> </code>
 ====See Also==== ====See Also====
  
-[[nvram_get()]] - Get a value in NVRAM</html>+[[nvram_get()]] - Get a value from <tooltip title="Non-Volatile RAM">NVRAM</tooltip>
  
-[[nvram_set()]] - set a value in NVRAM</html>+[[nvram_set()]] - Set key and value in <tooltip title="Non-Volatile RAM">NVRAM</tooltip>
uphp/functions/nvram_unset.1494494956.txt.gz · Last modified: 2021/09/13 05:56 (external edit)