php

embluk

·

PHP Switch

·

PHP

·

Total Size: 385 B

·

·

Created: 8 months ago

·

Edited: 8 months ago

<?php if ($i == 0) { echo "i equals 0"; } elseif ($i == 1) { echo "i equals 1"; } elseif ($i == 2) { echo "i equals 2"; } switch ($i) { case 0: echo "i equals 0"; break; case 1: echo "i equals 1"; break; case 2: echo "i equals 2"; break; } ?>

https://secure.php.net/manual/en/control-structures.switch.php

3 bits

248 views

Are you sure you want to delete?

User Profile Picture

Hello Word!

User Profile Picture

Printf(“Hello World %d”, dad);