Voting

: min(seven, nine)?
(Example: nine)

The Note You're Voting On

man13or at hotmail dot fr
5 years ago
Hello, since each() and list() often "betray" very old applications, I simply recommend not to use them anymore.

If you want to assign variables based on an associative array,
Replace this:

while(list ($key, $value) = each ($my_array)) {
$$key = $value;
}

with this:

foreach ($my_array as $key => $value) {
$$key = $value;
}

<< Back to user notes page

To Top