switch operator
$age = 9; switch($age){ case $age < 12: echo 'u are child'; break; case $age > 12 && $age <19: echo 'u are teen'; break; case $age > 20: echo 'u are an adult'; break; }
by guga muchiashvili
2 years ago
PHP
php note
0
Pro tip: use ```triple backticks around text``` to write in code fences