Normally, I'd have to go through and assign each variable, one by one:
data[] = {90, 2, 90, 2, 5};
angle_pan = data[0];
speed_pan = data[1];
angle_tilt = data[2];
speed_tilt = data[3];
pause = data[4];
Is there a way to something like this? (this is PHP code code by the way)
$data = Array(90, 2, 90, 2, 5);
list($angle_pan, $speed_pan, $angle_tilt, $speed_tilt, $pause) = $data;
That assigns all the values to the various variables in one line.