<?php function webmull($webmull) { switch ($webmull) { case 'e': print('5'); break; case 'm': echo('6'); break; case 'b': continue; break; default: echo '7'; break; } } webmull('w'); webmull('e'); webmull('b'); webmull('m'); ?>
$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;
}switch ([$color, $size]) {
case ['blue', 'small']:
echo 'blue and small';
break;
case ['red', 'large'];
echo 'red and large';
break;
}
Also in PHP:
- ADjust time limit php
- file upload in php through ajax
- destrroy a session php
- change url header php
- date("L")
- PHP if exists string
- add new column in existing table in laravel migration
- enable tab completion in terraform
- duplicate values in array php
- all php exception
- AWS HTTP error: SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
- date to format php
- date format in ph
- can users change header location php
- Customer::insert([ 'customer_name' => $request->customer name, 'customer mobile'=> $request->customer mobile, 'user_id'=>Auth::user()->id, 'created_at'=> Carbon::now() ]);
- DATE fromat H:i j M Y
- 413 error laravel
- echo errors of php
- Illuminate\Contracts\Container\BindingResolutionException Target class [SlugController] does not exist.
- echo all errors
- @ development: `mix` npm ERR! Exit status 1 npm ERR!
- $loop variable laravel
- cache clear in code php laravel
- AWS HTTP error: SSL operation failed with code 1.