Documentation / Tutorials / Quick Samples

Sample for Array Creation with different way

/ Quick Samples / Sample for Array Creation with different way

An array we are storing multiple values in one single variable

arr.create

  • Build an array
  • It returns: array

Syntax:

E.g – “variable” you need to place variable name from which you can access an array

_________________________________________________

aw2.set_array | module.set_array | template.set_array | env.set_array

Set an array
Scope Name: env(Global), module, template

Syntax:

Example:

_________________________________________________

arr.set

Set a value in an array

syntax –

Example:

_________________________________________________

Array Merge

Suppose you are getting multi Array from anywhere but there is a blank an array any of them

Example:

Note: We will make a php code later

Categories
Most Popular

Leave a Reply

Your email address will not be published.