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

Both sides previous revision Previous revision
Next revision
Previous revision
uphp:functions:ini_get_array [2017/04/13 13:51]
jeff
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 33: Line 28:
 ====Return Values==== ====Return Values====
  
-<html>If the <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 a <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 a <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====
uphp/functions/ini_get_array.1492091474.txt.gz · Last modified: 2021/09/13 05:56 (external edit)