User Tools

Site Tools


uphp:functions:indexed_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:indexed_array [2017/04/06 12:05]
jeff
uphp:functions:indexed_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">indexed_array (
-</html> +
-[[indexed_array]] ( +
-<html>+
 <span style="color:green">int <span style="color:green">int
 <span style="color:blue">$type<span style="color:black">, <span style="color:blue">$type<span style="color:black">,
Line 19: Line 15:
 <span style="color:blue">$size <span style="color:blue">$size
 <span style="color:black">) <span style="color:black">)
-</html> +</html></well>
-</well>+
  
 Create an indexed <html><b><span style="color:green">array<span style="color:black"></b></html> with the specified type and number of elements. An indexed array is a more efficient way to store variables in memory if the size and data type is known beforehand. The [[array()]] function creates a hashed array, which consumes much more memory per element. Create an indexed <html><b><span style="color:green">array<span style="color:black"></b></html> with the specified type and number of elements. An indexed array is a more efficient way to store variables in memory if the size and data type is known beforehand. The [[array()]] function creates a hashed array, which consumes much more memory per element.
Line 32: Line 27:
   * Type 4: Array of floating point numbers   * Type 4: Array of floating point numbers
  
-<html><b><span style="color:blue">$size<span style="color:black"></b></html>:  The number of elements in the <html><b><span style="color:green">array<span style="color:black"></b></html>+<html><b><span style="color:blue">$size<span style="color:black"></b>:  The number of elements in the <b><span style="color:green">array<span style="color:black"></b></html>
  
-====Return Value====+====Return Values====
  
 Indexed <html><b><span style="color:green">array<span style="color:black"></b></html> Indexed <html><b><span style="color:green">array<span style="color:black"></b></html>
uphp/functions/indexed_array.1491480347.txt.gz · Last modified: 2021/09/13 05:56 (external edit)