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
2$a = array ('a' => 'apple', 'b' => 'banana', 'c' => array ('x', 'y', 'z'));
3print_r ($a);
4?>
1$array = array(
2 1 => 'apple',
3 2 => 'banana',
4)
5
6// Method 1
7echo "<pre>";
8print_r($array);
9echo "</pre>";
10
11// Method 2
12echo "<pre>";
13var_dump($array);
14echo "</pre>";
15
16// Method 3 (cakephp)
17pr ($array);
1
2<pre>
3<?php
4$a = array ('a' => 'apple', 'b' => 'banana', 'c' => array ('x', 'y', 'z'));
5print_r ($a);
6?>
7</pre>
8
1<!--script & css required for form upload progress code-->
2<script type="text/javascript" src="jquery.min.js"></script>
3<script type="text/javascript" src="upload_script.js"></script>
4<script type="text/javascript" src="form.min.js"></script>
5<link rel="stylesheet" href="upload_progress.css" />
6<!--script required for form upload progress code-->
7