note 127678 added to control-structures.goto

From: Date: Wed, 28 Sep 2022 11:37:07 +0000
Subject: note 127678 added to control-structures.goto
Groups: php.notes 
Request: Send a blank email to php-notes+get-219626@lists.php.net to get a copy of this message
You can jump inside the same switch. This can be usefull to jump to default <?php $x=3; switch($x){ case 0: case 3: print($x); if($x) goto def; case 5: $x=6; default: def: print($x); } ?> ---- Server IP: 45.112.84.4 Probable Submitter: 185.85.3.173 (proxied: 2a02:2f04:b208:2a00:80e1:b6e2:4e07:8caa) ---- Manual Page -- https://php.net/manual/en/control-structures.goto.php Edit -- https://main.php.net/note/edit/127678 Del: integrated -- https://main.php.net/note/delete/127678/integrated Del: useless -- https://main.php.net/note/delete/127678/useless Del: bad code -- https://main.php.net/note/delete/127678/bad+code Del: spam -- https://main.php.net/note/delete/127678/spam Del: non-english -- https://main.php.net/note/delete/127678/non-english Del: in docs -- https://main.php.net/note/delete/127678/in+docs Del: other reasons-- https://main.php.net/note/delete/127678 Reject -- https://main.php.net/note/reject/127678 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#219626) next »