1
00:00:01,620 --> 00:00:08,650
At a is a structure that contains a group of elements we can declare an array using parentheses.

2
00:00:08,690 --> 00:00:17,210
And inside those parentheses we are placing arrays elements best would be to show this on some example

3
00:00:17,240 --> 00:00:18,640
for example here.

4
00:00:18,840 --> 00:00:28,050
We are creating a which contains three elements 1 2 and 3 we can from by script easily call each element

5
00:00:28,080 --> 00:00:36,240
of an array using dollar sign followed by curly brackets and inside of curly brackets we specified a

6
00:00:36,240 --> 00:00:36,920
name.

7
00:00:36,960 --> 00:00:40,430
In our case our essay is called at a.

8
00:00:40,740 --> 00:00:46,760
And then inside square brackets we can specify index of an array.

9
00:00:46,770 --> 00:00:52,620
Please note that the first element of an array has index 0.

10
00:00:52,920 --> 00:00:57,670
Second element of an array has index 1 and so on.

11
00:00:59,370 --> 00:01:04,710
Here we have other choices how to display information about a.

12
00:01:05,070 --> 00:01:13,360
So if we want to display first second or first element of an array we are using indexes.

13
00:01:13,490 --> 00:01:21,610
If you want display all items in a we are using inside square brackets at the symbol or asterisk.

14
00:01:22,050 --> 00:01:28,680
But as we already discussed in lecture about in the NOW field separator asterisk displays all items

15
00:01:28,740 --> 00:01:32,730
of array delimited by first character of Internode field.

16
00:01:32,760 --> 00:01:41,130
Separate them we can also display all indexes in the array and we are doing this by prepending exclamation

17
00:01:41,130 --> 00:01:42,390
mark before.

18
00:01:42,420 --> 00:01:50,460
Add a name and inside square brackets we need to specify a symbol or asterisk.

19
00:01:50,490 --> 00:01:57,480
Very good feature would be the possibility to display how many elements do we have in a form that we

20
00:01:57,510 --> 00:02:05,580
are prepending hash symbol before as a name and as usual inside square brackets we are using as symbol

21
00:02:05,640 --> 00:02:14,570
or asterisk we can also display the length of item 0 and 0 represents first element in a.

22
00:02:14,640 --> 00:02:18,580
It is basically a line of first element in a.

23
00:02:18,960 --> 00:02:27,000
And we are doing it by prepending Eshe before a name and inside square brackets we are putting a index

24
00:02:27,000 --> 00:02:27,660
number.

25
00:02:27,870 --> 00:02:35,560
So if we want to display a length of cert item in a we should put the number two inside square brackets.

26
00:02:37,080 --> 00:02:41,190
So now let's write some script to see it in action.
