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
Next revision Both sides next revision
uphp:functions:ini_get_array [2017/04/13 13:29]
jeff
uphp:functions:ini_get_array [2017/05/09 10:07]
jeff
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 <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 NVRAM to store a large collection of data.</alert>
uphp/functions/ini_get_array.txt · Last modified: 2021/09/13 05:57 (external edit)