PHP Classes

File: vendor/nikic/php-parser/test/code/prettyPrinter/stmt/switch.test

Recommend this page to a friend!
  Packages of Abed Nego Ragil Putra   Laravel Blogging Platform   vendor/nikic/php-parser/test/code/prettyPrinter/stmt/switch.test   Download  
File: vendor/nikic/php-parser/test/code/prettyPrinter/stmt/switch.test
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Laravel Blogging Platform
Manage blog posts using Laravel and Bootstrap
Author: By
Last change:
Date: 8 months ago
Size: 656 bytes
 

Contents

Class file image Download
switch/case/default ----- <?php switch ($expr) { case 0: echo 'First case, with a break'; break; case 1: echo 'Second case, which falls through'; case 2: case 3: case 4: echo 'Third case, return instead of break'; return; default: echo 'Default case'; break; } ----- switch ($expr) { case 0: echo 'First case, with a break'; break; case 1: echo 'Second case, which falls through'; case 2: case 3: case 4: echo 'Third case, return instead of break'; return; default: echo 'Default case'; break; }