php list and each functions

What does this piece of code do?

$this_array is an associated array.

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

The loop goes through array and create variables with names as $key and values as $value