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