ADD OR ON SWITCH CASE PHP
$age=20;
switch ($age) {
case 19:
echo "Age is 18";
break;
case 20:
echo "Age is 20";
break;
case 21:
echo "Age is 21";
break;
}case 'car':
case 'ferrari':
print("car or ferrari");
break;
Also in PHP:
- check if in array key php
- clear cache laravel and composer
- ddev laravel setup
- drupal 8 twig filters
- eloquent all only one culomn
- check if character in string php
- Redirection page php
- Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.3.0". when php is 7.4
- conteneur d'injection de dépendance php
- create seede for table in laravel
- check if char exists in string php
- contain in string php
- create seed file laravel
- date format in day name of month and year in php
- datetime format
- find a string in another one phph
- clear database cache laravel command
- date function attributes in php
- echo console.log
- api newslater with php
- check if contains ph
- Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\PPETrackerApp\email.php on line 21
- current date function in php
- difference entre deux date php