[PHP]Convert JSON to class instance
01 May 2018https://johannespichler.com/from-json-to-model-instances-in-php/
https://johannespichler.com/from-json-to-model-instances-in-php/
// return null|int
function checkAge($age): ?int
{
if($age > 12){
return $age;
}else{
return null;
}
}
https://docs.travis-ci.com/user/docker/ https://docs.travis-ci.com/user/languages/ruby/#stq=&stp=0 https://docs.travis-ci.com/user/deployment/s3/
```php \Illuminate\Support\Facades\Artisan::call(‘command’, [ ‘param1’ => ‘value’, ‘–param2’ => ‘value’, ]);
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": [
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::example-bucket/*"
]
}
]
}
Description | Example |
---|---|
Every minute | * * * * * |
Every 2nd minute | * /2 * * * |
At minute 30. | 30 * * * * |
At 00:00. | 0 0 * * * |
The deletion distance of two strings is the minimum number of characters you need to delete in the two strings in order to get the same string. For instance, the deletion distance between heat
and hit
is 3
: