1<?php
2$a = array ('a' => 'apple', 'b' => 'banana', 'c' => array ('x', 'y', 'z'));
3echo "<pre>";
4print_r ($a);
5echo "</pre>";
6?>
7
8Output:
9
10Array
11(
12 [a] => apple
13 [b] => banana
14 [c] => Array
15 (
16 [0] => x
17 [1] => y
18 [2] => z
19 )
20)
21
1
2<pre>
3<?php
4$a = array ('a' => 'apple', 'b' => 'banana', 'c' => array ('x', 'y', 'z'));
5print_r ($a);
6?>
7</pre>
8