HTML Diff
0 added 0 removed
Original 2026-01-01
Modified 2026-02-26
1 <?php // Обычный массив: $collection1 = ['hexlet', 'is', 'awesome']; // [ // "hexlet", // "is", // "awesome", // ] $collection1[0]; // "hexlet" $collection1[2]; // "awesome" // Ассоциативный массив: $collection2 = ['hexlet' => ['is', 'awesome', null], 'somesing' => 'amazing']; // [ // "hexlet" => [ // "is", // "awesome", // null, // ], // "somesing" => "amazing", // ] $collection2['hexlet']; // [ // "is", // "awesome", // null, // ] $collection2['hexlet'][1]; // "awesome"
1 <?php // Обычный массив: $collection1 = ['hexlet', 'is', 'awesome']; // [ // "hexlet", // "is", // "awesome", // ] $collection1[0]; // "hexlet" $collection1[2]; // "awesome" // Ассоциативный массив: $collection2 = ['hexlet' => ['is', 'awesome', null], 'somesing' => 'amazing']; // [ // "hexlet" => [ // "is", // "awesome", // null, // ], // "somesing" => "amazing", // ] $collection2['hexlet']; // [ // "is", // "awesome", // null, // ] $collection2['hexlet'][1]; // "awesome"