morpheus wrote:
..., but how do I get each of the items into the array in one line? Would it be something like ....
$check = array("item1", "item2", "item3");
That would work. This would associate item1 with array index 0, item2 with array index 1, ... You can also create associative arrays with string indexes with,
$check = array( "x" => "item1", "y" => "item2", "z" => "item3" );
then use, $check[x], $check[y] and $check[z] to access the
values. Note that you can create multidimensional arrays by
pointing to arrays within the array. Tres groovy.
$matrix = array( '0' => array( 1, 2, 3 ), '1' => array( 2, 3, 4 ) );