From 440362b2f6bf78ac0316bf72f21709a0a16ec2dd Mon Sep 17 00:00:00 2001 From: V Date: Tue, 21 Apr 2026 19:00:52 +0300 Subject: [PATCH 1/4] Update introduction.md Added details about how to use functions PHP provides to work with arrays --- .../concept/language-list/.docs/introduction.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/exercises/concept/language-list/.docs/introduction.md b/exercises/concept/language-list/.docs/introduction.md index 25b8cdd3..7bf5bded 100644 --- a/exercises/concept/language-list/.docs/introduction.md +++ b/exercises/concept/language-list/.docs/introduction.md @@ -33,6 +33,21 @@ $prime_numbers[3] = 7; // replace 6 with 7 $prime_numbers[] = 11; // array now contains [2, 3, 5, 7, 11] ``` +### Performing Actions with Arrays + +PHP provides functions you can use to modify arrays and work with items in arrays. Below are some of the frequently used ones: + +```php +$prime_numbers = [2, 3, 5, 6]; + +count($prime_numbers); // 4 + +array_shift($prime_numbers); // array now contains [3, 5, 6] + +array_pop($prime_numbers); // array now contains [3, 5] + +``` + ## Variable-Length Arguments Function arguments can be specified such that it can take any number of arguments: From d58ee65f074a9433c8ce075d0b1e13ca61e6c8ae Mon Sep 17 00:00:00 2001 From: V Date: Wed, 22 Apr 2026 09:37:45 +0300 Subject: [PATCH 2/4] Update introduction.md --- .../concept/language-list/.docs/introduction.md | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/exercises/concept/language-list/.docs/introduction.md b/exercises/concept/language-list/.docs/introduction.md index 7bf5bded..bc768638 100644 --- a/exercises/concept/language-list/.docs/introduction.md +++ b/exercises/concept/language-list/.docs/introduction.md @@ -35,18 +35,7 @@ $prime_numbers[] = 11; // array now contains [2, 3, 5, 7, 11] ### Performing Actions with Arrays -PHP provides functions you can use to modify arrays and work with items in arrays. Below are some of the frequently used ones: - -```php -$prime_numbers = [2, 3, 5, 6]; - -count($prime_numbers); // 4 - -array_shift($prime_numbers); // array now contains [3, 5, 6] - -array_pop($prime_numbers); // array now contains [3, 5] - -``` +PHP provides functions you can use to modify arrays and work with items in arrays. The PHP documentation offers detailed information array functions in the [array](https://www.php.net/manual/en/language.types.array.php) documentation. ## Variable-Length Arguments From fb630bf812904a99df20190d596b3b66a6b126e2 Mon Sep 17 00:00:00 2001 From: V Date: Wed, 22 Apr 2026 09:39:28 +0300 Subject: [PATCH 3/4] Update introduction.md --- exercises/concept/language-list/.docs/introduction.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/concept/language-list/.docs/introduction.md b/exercises/concept/language-list/.docs/introduction.md index bc768638..032d017f 100644 --- a/exercises/concept/language-list/.docs/introduction.md +++ b/exercises/concept/language-list/.docs/introduction.md @@ -35,7 +35,7 @@ $prime_numbers[] = 11; // array now contains [2, 3, 5, 7, 11] ### Performing Actions with Arrays -PHP provides functions you can use to modify arrays and work with items in arrays. The PHP documentation offers detailed information array functions in the [array](https://www.php.net/manual/en/language.types.array.php) documentation. +PHP provides functions you can use to modify arrays and work with items in arrays. The PHP documentation offers detailed information [array](https://www.php.net/manual/en/language.types.array.php) functions. ## Variable-Length Arguments From 0993c58e3c6ea34c3c92bca2111edf0c5903cc30 Mon Sep 17 00:00:00 2001 From: V Date: Wed, 22 Apr 2026 09:40:15 +0300 Subject: [PATCH 4/4] Update introduction.md --- exercises/concept/language-list/.docs/introduction.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/concept/language-list/.docs/introduction.md b/exercises/concept/language-list/.docs/introduction.md index 032d017f..52bed38a 100644 --- a/exercises/concept/language-list/.docs/introduction.md +++ b/exercises/concept/language-list/.docs/introduction.md @@ -35,7 +35,7 @@ $prime_numbers[] = 11; // array now contains [2, 3, 5, 7, 11] ### Performing Actions with Arrays -PHP provides functions you can use to modify arrays and work with items in arrays. The PHP documentation offers detailed information [array](https://www.php.net/manual/en/language.types.array.php) functions. +PHP provides functions you can use to modify arrays and work with items in arrays. The PHP documentation offers detailed information on [array](https://www.php.net/manual/en/language.types.array.php) functions. ## Variable-Length Arguments