Share on Google+Share on Google+

PHP list array

In this segment of the tutorial we will learn about the function list in context of list . And also we will see the example related to the list function

Syntax for PHP List Array
void list(var arg1,var arg2,var arg3)

  • list() is used to assign many variables at a time.
  • It takes variable values from the array and assign it to the variables of the list.

Example of PHP List Array

Code for PHP List Array

= array(1 ,'jack', 'math');
($roll, $name, $subject) = $stud;
"roll is $roll<br>name is $name<br>subject is $subject";

roll is 1
name is jack
subject is math


Posted on: October 30, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.