#60. PHP Array List Function

 How to work PHP Array List Function?

E.g.


Run Code:

<?php

$cars = array("Civic","Alto","Mehran","Carola");

list($a,$b,$c) = $cars;

echo "Value of a : $a <br>";
echo "Value of b : $b <br>";
echo "Value of c : $c <br>";

Another E.g.



Comments

Popular posts from this blog

#30. PHP Recursive Function