PHP list() FunctionLast Updated : 17 Mar 2025 The PHP list( ) function is used to assign values to a list of variables in one operation. This function was introduced in PHP 4.0. SyntaxParameter
ReturnsThe list( ) function returns the assigned array. Example 1Output: I have many cars like, a audi, a ford and a toyota. Example 2Output: Here I only use the audi and mercedes variables. Example 3Output: I am expert in php, javascript and html. Example 4Output: We have covered php and asp.net and so many other topics Next TopicPhp-array-map-function |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India