|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-05-04 08:10 UTC] stas@php.net
-Package: PHP Language Specification
+Package: *General Issues
[2016-05-04 13:26 UTC] nikic@php.net
-Status: Open
+Status: Duplicate
[2016-05-04 13:26 UTC] nikic@php.net
[2016-05-10 13:58 UTC] must at be dot valid
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 15:00:01 2025 UTC |
Description: ------------ foreach-else construct, that if foreach-element is empty (or not iterable). Test script: --------------- $foo = []; foreach ($foo as $bar) { echo $bar; ] else { echo 'no bar'; } Expected result: ---------------- no bar Actual result: -------------- PHP Parse error: syntax error, unexpected 'else' (T_ELSE)