0) { $x = 0; foreach($userlist as $k => $v) { echo "userList[$x] = new Array('$k','$v');\n"; $x++; } } ?>