phpMyadmin error continue targeting switch is equivalent to break
This error occurs by PHP backward-compatible.
Updating to the latest version, for me was 4.8.5 resolved the issue.
continue 2 and break in switch statement
The continue 2
skips directly to the next iteration of the structure that is two levels back, which is the foreach
. The break
(equivalent to break 1
) just ends the switch
statement.
The behavior in the code you've shown is:
Loop through $elements
. If an $element
is type "a" and condition1
is met, or if it's type "b" and condition2
is met, skip to the next $element
. Otherwise, perform some action before moving to the next $element
.
From PHP.net:continue:
continue accepts an optional numeric argument which tells it how many
levels of enclosing loops it should skip to the end of. The default
value is 1, thus skipping to the end of the current loop.
From PHP.net:switch
PHP continues to execute the statements until the end of the switch
block, or the first time it sees a break statement.
If you have a switch inside a loop and wish to continue to the next
iteration of the outer loop, use continue 2.
Laravel install continue targeting switch is equivalent to break. Did you mean to use continue 2?
This ended up being a problem with some conflicting aliases in my .zshrc
config.
Composer
was aliased as usr/local/bin/composer.phar
, so I moved that file to ~/.composer/vendor/bin/composer
, and deleted all the aliases for laravel
, lumen
and composer
in my .zshrc
file and removed and re-added the basic export PATH="$PATH:$HOME/.composer/vendor/bin"
path as well.
This was helpful: https://laracasts.com/discuss/channels/general-discussion/sh-composer-command-not-found
Related Topics
Codeigniter Assets Folder Best Practice
How to Make Apache Serve Index.PHP Instead of Index.Html
Codeigniter Model Error: Undefined Property
How to Stop PHP Imagick Auto-Rotating Images Based on Exif 'Orientation' Data
Codeigniter: 404 Page Not Found on Live Server
In PHP, How to Get the First and Last Date of a Month
Upload Images on Twitter Using PHP
Codeigniter Csrf Valid for Only One Time Ajax Request
How to Use PHP in a JavaScript Function
Yii2:Activequery Example and What Is the Reason to Generate Activequery Class Separately in Gii
Return Errors from PHP Run Via. Ajax
Soapfault Exception: Could Not Connect to Host