// You can initialize an empty array $toto = array(); // Or just define its elements $a[0] = "abc"; $a[1] = "def"; $b["foo"] = 13; // It is possible to insert elements : $a[] = "hello"; // $a[2] == "hello" $a[] = "world"; // $a[3] == "world"$v){ echo "\$a[$k] => $v