How does PHP's list function work?
You'll have to learn some variation of C to know how it really works behind the scenes. For your PHP though, it's handy to get array element values into individually named scalar variables. It's return value is the array that appears after assignment operator.
The variable $list_return, will just be the unchanged array that was assigned to variables by the list statement, unless an error or invalid array is encountered. The main reason you would use the return value is to check if you have a valid array. For example in a loop that reads records in from a database set until the end is reached and an END OF DATA or NULL is passed from the reading source?
I didn't find the right solution from the Internet.