This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
uphp:functions:indexed_array [2017/03/31 13:43] jeff |
uphp:functions:indexed_array [2021/09/13 05:57] (current) |
||
---|---|---|---|
Line 3: | Line 3: | ||
< | < | ||
- | Create an array of a specific type and size | + | Create an < |
====Description==== | ====Description==== | ||
- | <well size=" | + | <well size=" |
- | <span style=" | + | <span style=" |
- | < | + | <span style=" |
<span style=" | <span style=" | ||
<span style=" | <span style=" | ||
Line 17: | Line 17: | ||
</ | </ | ||
- | Create an indexed array 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 |
====Parameters==== | ====Parameters==== | ||
- | < | + | <html><b>< |
* Type 1: Array of bytes | * Type 1: Array of bytes | ||
* Type 2: Array of short integers (16 bits) | * Type 2: Array of short integers (16 bits) | ||
Line 27: | Line 27: | ||
* Type 4: Array of floating point numbers | * Type 4: Array of floating point numbers | ||
- | < | + | <html><b>< |
- | ====Return | + | ====Return |
- | Indexed array | + | Indexed |
====Example==== | ====Example==== | ||
Line 47: | Line 47: | ||
====See Also==== | ====See Also==== | ||
- | [[array()]] - Create an array, with optional values | + | [[array()]] - Create an < |
[[uphp: | [[uphp: | ||