delitem
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | delitem [2006/07/28 04:10] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | # $EPIC: delitem.txt, | ||
| + | ======Synopsis: | ||
| + | $delitem(< | ||
| + | |||
| + | ======Technical: | ||
| + | This function is used to delete an entry from an array created with | ||
| + | $[[setitem]](). | ||
| + | the array is deleted too. If the item is not the last item in the | ||
| + | array, all items beyond it (with higher item numbers) are shifted down | ||
| + | by one to fill in the gap. | ||
| + | |||
| + | ======Practical: | ||
| + | This function is used to delete items from an array. | ||
| + | are pretty obvious. | ||
| + | might want to remove them, too. | ||
| + | |||
| + | ======Returns: | ||
| + | < | ||
| + | | ||
| + | | ||
| + | 0 on success | ||
| + | </ | ||
| + | |||
| + | ======Examples: | ||
| + | $delitem(array 2) | ||
| + | $delitem(fake_array 4) error, " | ||
| + | $delitem(array -2) error, item -2 does not exist | ||
delitem.txt · Last modified: 2006/07/28 04:10 by 127.0.0.1
