070 - Array List , assign array value to variables
Value of a : red
Value of b : green
Value of c : blue

070-a - Array List , Numberic Value
Value of a : 22
Value of b : 55
Value of c : 33

070-c - Array List , Remove Variable
Value of a : 22
Value of c : 33

070-d - Array List , Only works with Numeric Index
Value of a : red
Value of b : green
Value of c : blue

070-e - Array List , All values in One Array
Value of a : red
Value of b : green
Value of c : blue
<?php // 070 - Array List , store array values to variables, assign array value to variables echo "</br><span class='myheading'>070 - Array List , assign array value to variables</span></br>"; $color = array('red', 'green', 'blue'); list($a , $b, $c) = $color; echo "Value of a : $a <br>"; echo "Value of b : $b <br>"; echo "Value of c : $c <br>"; // 070-a - Array List , Numberic Value echo "</br><span class='myheading'>070-a - Array List , Numberic Value</span></br>"; $color1 = array(22,55,33); list($a , $b, $c) = $color1; echo "Value of a : $a <br>"; echo "Value of b : $b <br>"; echo "Value of c : $c <br>"; // 070-c - Array List , Remove Variable echo "</br><span class='myheading'>070-c - Array List , Remove Variable</span></br>"; list($a , , $c) = $color1; echo "Value of a : $a <br>"; echo "Value of c : $c <br>"; // 070-d - Array List , Only works with Numeric Index echo "</br><span class='myheading'>070-d - Array List , Only works with Numeric Index</span></br>"; $color2 = array(0 => 'red', 1 => 'green', 2 => 'blue'); list($a , $b, $c) = $color2; echo "Value of a : $a <br>"; echo "Value of b : $b <br>"; echo "Value of c : $c <br>"; // 070-e - Array List , All values in One Array echo "</br><span class='myheading'>070-e - Array List , All values in One Array</span></br>"; list($d[0], $d[1], $d[2]) = $color2; echo "Value of a : $d[0] <br>"; echo "Value of b : $d[1] <br>"; echo "Value of c : $d[2] <br>"; ?>