[doc-en] master: Fix example code for skipping array elements (#4851)
| From: | Daniel Scherzer via GitHub | Date: | Thu, 28 Aug 2025 00:49:12 +0000 |
| Subject: | [doc-en] master: Fix example code for skipping array elements (#4851) | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-22752@lists.php.net to get a copy of this message | ||
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],
];