From 195150fd1de38eff9daf0170f3b0863a5bdf674a Mon Sep 17 00:00:00 2001 From: NaifAbdalla <72540335+NaifAbdalla@users.noreply.github.com> Date: Thu, 9 Mar 2023 21:17:28 +0300 Subject: [PATCH] Used the array function to create an array --- 03_arrays.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/03_arrays.php b/03_arrays.php index c63a4e5..3d5470b 100644 --- a/03_arrays.php +++ b/03_arrays.php @@ -12,7 +12,7 @@ $colors = ['red', 'blue', 'green']; // Using the array function to create an array of numbers -$numbers = [1, 2, 3, 4, 5]; +$numbers = array(1, 2, 3, 4, 5); // Outputting values from an array echo $numbers[0];