R4R Team working to provide free of cost for experienced and freshers

Tutorials | Examples|Interview Questions and Answers|Java Tutorials| C Tutorials | C++ Tutorials | Spring Tutorials| Hibernate Tutorials | JSP Tutorials | Servelets Tutorials| C# Tutorials | PHP Tutorials etc , Basics | Download Software | Data Types | Variables | Constant | Storage & Classes | Operators | Decisions Making | Loops | Functions| Numbers | Arrays | Pointers | String | Datastructure | Expressions | Preprocessor Statement | I/O | Exception Handling | OOPs Tutorial | Classes and object |C++ Inheritance Overloading | Polymorphism | Abstraction | Encapsulation | Interfaces | Multithreading etc

PHP Programing language

array_list() Function in PHP
Previous Home Next


The list() function is used to assign only numeric values to a list of variables in one operation.


In above syntax, "var1" is used to assign a value to, "var2,..." is useto assign values to more variables.


$my_vehicle = array("Car","Scooter","Motorcycle");
list($a, $b, $c) = $my_vehicle;
echo "I have many vehicles; a $a, a $b and a $c.";


I have many vehicles; a Car, a Scooter and a Motorcycle.

Previous Home Next