From 33db6327c5acbe1019b6393083778b847d4e3035 Mon Sep 17 00:00:00 2001 From: lacatoire Date: Mon, 4 May 2026 13:03:45 +0200 Subject: [PATCH 1/2] [Translate] array_first, array_last Translate the two PHP 8.5 array helpers into Turkish, completing the series started in #41 (array_find / array_find_key / array_any / array_all). Aligned wording and example structure with the existing array_key_first / array_key_last pages. --- reference/array/functions/array-first.xml | 94 +++++++++++++++++++++++ reference/array/functions/array-last.xml | 94 +++++++++++++++++++++++ 2 files changed, 188 insertions(+) create mode 100644 reference/array/functions/array-first.xml create mode 100644 reference/array/functions/array-last.xml diff --git a/reference/array/functions/array-first.xml b/reference/array/functions/array-first.xml new file mode 100644 index 00000000..c2f53395 --- /dev/null +++ b/reference/array/functions/array-first.xml @@ -0,0 +1,94 @@ + + + + + array_first + Dizinin ilk değeri ile döner + + + + &reftitle.description; + + mixedarray_first + arraydizi + + + Belirtilen dizinin ilk değerini döndürür. + + + + + &reftitle.parameters; + + + dizi + + + Bir dizi. + + + + + + + + &reftitle.returnvalues; + + Dizi boş değilse dizinin ilk değeri ile döner; + aksi takdirde &null; döner. + + + + + &reftitle.examples; + + - <function>array_first</function> Temel Kullanım Örneği + + 'a', 0 => 'b', 3 => 'c', 2 => 'd']; + +$ilkDeger = array_first($dizi); + +var_dump($ilkDeger); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + array_key_first + array_last + + + + + diff --git a/reference/array/functions/array-last.xml b/reference/array/functions/array-last.xml new file mode 100644 index 00000000..4076ac63 --- /dev/null +++ b/reference/array/functions/array-last.xml @@ -0,0 +1,94 @@ + + + + + array_last + Dizinin son değeri ile döner + + + + &reftitle.description; + + mixedarray_last + arraydizi + + + Belirtilen dizinin son değerini döndürür. + + + + + &reftitle.parameters; + + + dizi + + + Bir dizi. + + + + + + + + &reftitle.returnvalues; + + Dizi boş değilse dizinin son değeri ile döner; + aksi takdirde &null; döner. + + + + + &reftitle.examples; + + - <function>array_last</function> Temel Kullanım Örneği + + 'a', 0 => 'b', 3 => 'c', 2 => 'd']; + +$sonDeger = array_last($dizi); + +var_dump($sonDeger); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + array_key_last + array_first + + + + + From d7dcad8531a366619e261d4c7615ac622e1725b5 Mon Sep 17 00:00:00 2001 From: lacatoire Date: Mon, 4 May 2026 13:16:23 +0200 Subject: [PATCH 2/2] =?UTF-8?q?Use=20'ile=20d=C3=B6ner'=20consistently=20t?= =?UTF-8?q?o=20match=20array=5Fkey=5Ffirst/array=5Fkey=5Flast=20style?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reference/array/functions/array-first.xml | 2 +- reference/array/functions/array-last.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/array/functions/array-first.xml b/reference/array/functions/array-first.xml index c2f53395..b3178c6a 100644 --- a/reference/array/functions/array-first.xml +++ b/reference/array/functions/array-first.xml @@ -13,7 +13,7 @@ arraydizi - Belirtilen dizinin ilk değerini döndürür. + Belirtilen dizinin ilk değeri ile döner. diff --git a/reference/array/functions/array-last.xml b/reference/array/functions/array-last.xml index 4076ac63..99225623 100644 --- a/reference/array/functions/array-last.xml +++ b/reference/array/functions/array-last.xml @@ -13,7 +13,7 @@ arraydizi - Belirtilen dizinin son değerini döndürür. + Belirtilen dizinin son değeri ile döner.