User Tools

Site Tools


uphp:functions:ini_get_array

Differences

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

Link to this comparison view

Next revision
Previous revision
uphp:functions:ini_get_array [2017/04/13 08:40]
jeff created
uphp:functions:ini_get_array [2021/09/13 05:57] (current)
Line 7: Line 7:
 ====Description==== ====Description====
  
-<well size="sm"> +<well size="sm"><html>
-<html>+
 <span style="font-size:125%;color:green">array <span style="font-size:125%;color:green">array
-<span style="color:black"> +<span style="color:black">ini_get_array (
-</html> +
-[[ini_get_array]] ( +
-<html>+
 <span style="color:green">string <span style="color:green">string
 <span style="color:blue">$filename <span style="color:blue">$filename
Line 20: Line 16:
 <span style="color:blue">$section <span style="color:blue">$section
 <span style="color:black">] ) <span style="color:black">] )
-</html> +</html></well>
-</well>+
  
 This function reads multiple configuration key/value pairs from an INI file. This function reads multiple configuration key/value pairs from an INI file.
Line 29: Line 24:
 <html><b><span style="color:blue">$filename<span style="color:black"></b></html>:  Full path and name of the INI file <html><b><span style="color:blue">$filename<span style="color:black"></b></html>:  Full path and name of the INI file
  
-<html><b><span style="color:blue">$section<span style="color:black"></b></html>:  Optional, section inside the INI file+<html><b><span style="color:blue">$section<span style="color:black"></b></html>:  Optional, name of the section inside the INI file
  
 ====Return Values==== ====Return Values====
  
-<html>If <b><span style="color:blue">$section<span style="color:black"></b> is specified:  a single-dimensional <b><span style="color:green">array<span style="color:black"></b>, with all key/value pairs in the section.</html>+<html>If <b><span style="color:blue">section<span style="color:black"></b> is specified:  a single-dimensional <b><span style="color:green">array<span style="color:black"></b>, with all key/value pairs in the section.</html>
  
-<html>If <b><span style="color:blue">$section<span style="color:black"></b> is not specified:  a two-dimensional <b><span style="color:green">array<span style="color:black"></b></html> __containing the entire INI file__.  The first dimension will contain the sections and the second the key/value pairs.+<html>If <b><span style="color:blue">section<span style="color:black"></b> is not specified:  a two-dimensional <b><span style="color:green">array<span style="color:black"></b></html> __containing the entire INI file__.  The first dimension will contain the sections and the second the key/value pairs.
  
-<alert type="warning">Loading an entire INI file can be memory intensive and should be avoided if the file has more than just a few elements.  Instead, use [[ini_get]] to load specific values, which works well with large files. Or for fast access consider using NVRAM to store a large collection of data.</alert>+<alert type="warning">Loading an entire INI file can be memory intensive and should be avoided if the file has more than just a few elements.  Instead, use [[ini_get]] to load specific values, which works well with large files. Or for fast access consider using <tooltip title="Non-Volatile RAM">NVRAM</tooltip> to store a large collection of data.</alert>
  
 ====Example==== ====Example====
Line 73: Line 68:
 [[ini_get()]] - Get a value from an INI file [[ini_get()]] - Get a value from an INI file
  
-[[ini_put_array()]] - Write the values from key/value <html><b><span style="color:green">array<span style="color:black"></b></html> to an INI file, with optional section+[[ini_put_array()]] - Write a group of parameters to an INI file from an <html><b><span style="color:green">array<span style="color:black"></b></html>
  
-[[ini_set()]] - Write a value to a section in an INI file+[[ini_set()]] - Set a value in an INI file
  
uphp/functions/ini_get_array.1492072855.txt.gz · Last modified: 2021/09/13 05:56 (external edit)