[DOC-CVS] [doc-en] master: Fix example code for skipping array elements (#4851)

[email protected] (Daniel Scherzer via GitHub)
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Daniel Scherzer (DanielEScherzer)
Committer: GitHub (web-flow)
Pusher: sy-records
Date: 2025-08-28T08:49:10+08:00

Commit: https://github.com/php/doc-en/commit/ba7093cf7f30dbcd301c62536ac7ef8664d891f4
Raw diff: https://github.com/php/doc-en/commit/ba7093cf7f30dbcd301c62536ac7ef8664d891f4.diff

Fix example code for skipping array elements (#4851)

Changed paths:
  M  language/control-structures/foreach.xml


Diff:

diff --git a/language/control-structures/foreach.xml b/language/control-structures/foreach.xml
index 260188f35bc9..8cffaca5fa24 100644
--- a/language/control-structures/foreach.xml
+++ b/language/control-structures/foreach.xml
@@ -161,7 +161,7 @@ A: 3; B: 4
 <![CDATA[
 <?php
 $array = [
-    [1, 2, 3],
+    [1, 2, 5],
     [3, 4, 6],
 ];
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.