This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
script_syntax [2023/02/13 23:09] – justin | script_syntax [2023/02/13 23:11] – justin | ||
---|---|---|---|
Line 234: | Line 234: | ||
The **duplicate** function creates a unique copy of an [[array]] or [[codex]]. Since the copy is unique, you can modify its data without affecting the original [[array]] or [[codex]]. | The **duplicate** function creates a unique copy of an [[array]] or [[codex]]. Since the copy is unique, you can modify its data without affecting the original [[array]] or [[codex]]. | ||
- | Using the code below, $items_copy will contain a reference to the original $items [[codex]], so any changes to one will affect the other. | + | Using the code below, |
<code bauxite> | <code bauxite> | ||
$items = codex[" | $items = codex[" | ||
Line 241: | Line 241: | ||
</ | </ | ||
- | In the example below, a copy of $items is made using the " | + | In the example below, a copy of **$items** is made using the " |
<code bauxite> | <code bauxite> | ||
$items = codex[" | $items = codex[" |