Immediately after creating an array, we can create more arrays in that array forever. You can think of it as subcategory logic. Again, you can do this with the function:
<?php
$meal['dessert'] = ['cake', 'cookies', 'sugar'];
$meal['bitter'] = ['pepper', 'spicy adana', 'mexican sauce'];
echo 'I ate '. $meal['dessert'][0];
?>
The screen writes that I ate cake. You can create as many nested arrays as you want here. Let me show you another example:
<?php
$meal['dessert'][0] = 'cake';
$meal['dessert'][1] = 'cookies';
$meal['dessert'][2] = 'sugar';
$meal['bitter'][0] = 'pepper';
$meal['pain'][1] = 'painful adana';
$meal['bitter'][2] = 'mexican sauce';
echo 'I ate '. $meal['dessert'][0];
?>