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<?php $data = array('a'=>'apple','b'=>'banana','c'=>'orange');?>
2<pre><?php print_r($data); ?></pre>
3