diff --git a/concepts/arrays/about.md b/concepts/arrays/about.md index e5c3b0e4..a755baf3 100644 --- a/concepts/arrays/about.md +++ b/concepts/arrays/about.md @@ -44,9 +44,7 @@ Access, assign, append values using the index operator: ```php $prime_numbers = [1, 3, 5, 7, 11, 12]; -$prime_numbers[5] = 13; - -$unlucky_number = $arr[3]; // replace 12 with 13 +$prime_numbers[5] = 13; // replace 12 with 13 $prime_numbers[] = 17; // array now contains [1, 3, 5, 7, 11, 13, 17] ``` diff --git a/concepts/arrays/introduction.md b/concepts/arrays/introduction.md index c41f05e3..ec617316 100644 --- a/concepts/arrays/introduction.md +++ b/concepts/arrays/introduction.md @@ -25,9 +25,7 @@ Access, assign, append values using the index operator: ```php $prime_numbers = [1, 3, 5, 7, 11, 12]; -$prime_numbers[5] = 13; - -$unlucky_number = $arr[3]; // replace 12 with 13 +$prime_numbers[5] = 13; // replace 12 with 13 $prime_numbers[] = 17; // array now contains [1, 3, 5, 7, 11, 13, 17] ``` diff --git a/exercises/concept/language-list/.docs/introduction.md b/exercises/concept/language-list/.docs/introduction.md index ba56edd8..96776a56 100644 --- a/exercises/concept/language-list/.docs/introduction.md +++ b/exercises/concept/language-list/.docs/introduction.md @@ -27,9 +27,7 @@ Access, assign, append values using the index operator: ```php $prime_numbers = [1, 3, 5, 7, 11, 12]; -$prime_numbers[5] = 13; - -$unlucky_number = $arr[3]; // replace 12 with 13 +$prime_numbers[5] = 13; // replace 12 with 13 $prime_numbers[] = 17; // array now contains [1, 3, 5, 7, 11, 13, 17] ```