"; echo "$arr[2] $arr[0] $arr[3]
\n"; // Here is a way to assign the contents of an array to variables. list($a, $b, $c, $fred, $barney, $sally) = $arr; echo "$a - $b - $c - $fred - $barney - $sally
\n"; // The explode funtion breaks a string up into substrings using a // separator, and returns an array of the parts. $parts = explode(";", "17;bill;alex;22;boo!"); echo "$parts[0] + $parts[1] + $parts[2] + $parts[3] + $parts[4]
\n"; // And, we can use both together. list($a,$b,$c) = explode("<->", "winnie<->billie<->aardvark"); print "[$a] [$b] [$c]
\n"; ?>