[Solved] PHP Switch statements Error [closed]
You don’t actually use the brackets or default like that. <?php switch ($type) { case ‘pm’: // Do something when $type is ‘pm’ // This can be multiple statements break; case ‘notification’: // Do something when $type is ‘notification’ // This can be multiple statements break; default: // Do something else break; } You only … Read more