Массивы и коллекции / Словари

<?php

//In PHP there are no
//Dictionary type, use array instead

//Empty dictionary
$d1 = [];

//init with some data
$numbers = [
    1 => "one"2 => "two"
];

echo "d1 count is "count($d1), "\n";
print_r($numbers);