Difference between revisions of "Nats add to array"
From TMM Wiki
Jump to navigationJump to searchTMMStephenY (talk | contribs) m |
(→Notes) |
||
Line 45: | Line 45: | ||
== Notes == | == Notes == | ||
+ | [[Image:Broke281.flv]] | ||
None. | None. | ||
[[Category:NATS4 Template Functions]] | [[Category:NATS4 Template Functions]] |
Revision as of 15:59, 5 June 2015
Applies to NATS 4.0.25 and greater.
nats_add_to_array
Turns a comma-separated list into a Smarty array.
Alias: add_to_array
Parameters
(Required parameters in bold)
Parameter | Description | Possible Values | Default Value | Example |
---|---|---|---|---|
add | The list of items to add to the array | Any characters | Empty. Creates an empty array | add="one,two,three" |
array | Name of array to create | Any valid Smarty array name | You must provide an argument | array="myarray" |
assign_prefix | Prefix output variables with this word. (Click link for details) | Any valid Smarty variable name | None. (No prefix is used) | assign_prefix="myvar" |
Output
None. Creates the array set with the array parameter.
Notes
File:Broke281.flv None.