السلام عليكم
ممكن تعطوني امثلة توضيحية حول المصوفات array في لغة php و انواعها
$arr1 = array(10, 20, 30, 40);
$arr2 = array('a' => 600, 'b' => 120, 'c' => 500);
$arr3 = [10, 20, 30];
$arr4 = ['a' => 600, 'b' => 120, 'c' => 500];
$arr5 = [ 'a' => [
60, 70, 80
],
'b' => [
'v1' => 'ahmed', 'v2' => 'yasser', 'v3' => true
],
'c' => 500
];
$arr6 = [];
$arr6[] = 10;
$arr6[] = 20;
$arr6[] = 30;
$arr7 = [];
$arr7['v1'] = 'jamal';
$arr7['v2'] = 10.6;
$arr7['v3'] = false;
$arr7['v4'] = ['yasser', true, 500];
$arr7['v4']['b1'] = 100;
$arr7['v4']['b2']['c1'] = 1000;
$arr7['v4']['b2']['c2'] = 2000;
التعليقات