getitem
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | getitem [2006/08/01 03:45] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | # $EPIC: getitem.txt, | ||
| + | ======Synopsis: | ||
| + | $__getitem__(< | ||
| + | $__igetitem__(< | ||
| + | |||
| + | ======Technical: | ||
| + | These functions are used to fetch data held in the given array. | ||
| + | |||
| + | The $__getitem__() function retrieves data based on its item number in | ||
| + | the array (counting from zero, the order in which the data was entered). | ||
| + | |||
| + | The $__igetitem__() function retrieves it based on its index number | ||
| + | (counting from zero, in a sorted order). | ||
| + | |||
| + | These functions only affect arrays created with $[[setitem]](). | ||
| + | |||
| + | ======Practical: | ||
| + | These functions are used to get an item in an array. | ||
| + | for these function should be obvious. | ||
| + | particular, is useful for showing an array' | ||
| + | order. | ||
| + | |||
| + | ======Returns: | ||
| + | array item data, or empty string if array or item is not found | ||
getitem.txt · Last modified: 2006/08/01 03:45 by 127.0.0.1
