This shows you the differences between two versions of the page.
uphp:functions:indexed_array [2017/04/12 11:43] jeff |
uphp:functions:indexed_array [2021/09/13 05:57] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======indexed_array====== | ||
- | |||
- | < | ||
- | |||
- | Create an < | ||
- | |||
- | ====Description==== | ||
- | |||
- | <well size=" | ||
- | < | ||
- | <span style=" | ||
- | <span style=" | ||
- | </ | ||
- | [[indexed_array]] ( | ||
- | < | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | </ | ||
- | </ | ||
- | |||
- | Create an indexed < | ||
- | |||
- | ====Parameters==== | ||
- | |||
- | < | ||
- | * Type 1: Array of bytes | ||
- | * Type 2: Array of short integers (16 bits) | ||
- | * Type 3: Array of 32 bit integers | ||
- | * Type 4: Array of floating point numbers | ||
- | |||
- | < | ||
- | |||
- | ====Return Value==== | ||
- | |||
- | Indexed < | ||
- | |||
- | ====Example==== | ||
- | |||
- | <code php> | ||
- | <? | ||
- | $arr=indexed_array(1, | ||
- | ?> | ||
- | </ | ||
- | |||
- | ====Note==== | ||
- | |||
- | There are no named keys in an indexed array, all elements are referenced by the index number. The first element is index=0, and the last element is index=$size-1. | ||
- | |||
- | ====See Also==== | ||
- | |||
- | [[array()]] - Create an < | ||
- | |||
- | [[uphp: | ||