<div class="grid">
<img class="grid-item" src="">
<img class="grid-item" src="">
<img class="grid-item" src="">
<img class="grid-item" src="">
<img class="grid-item" src="">
</div>
.grid {
display: grid;
grid-template-columns: repeat(6, 1fr);
grid-gap: 2px;
}
.grid-item:nth-child(1),
.grid-item:nth-child(2) { grid-column: span 3; }
.grid-item:nth-child(3),
.grid-item:nth-child(4),
.grid-item:nth-child(5) { grid-column: span 2; }
(604.5 < -597.5) < 512.5
604.5 < -597.5 < 512.5
(604.5 < -597.5) < 512.5
false < 512.5 // тут приведение типа bool к int
0 < 512.5
true
604.5 < -597.5 && -597.5 < 512.5
(604.5 < -597.5) && (-597.5 < 512.5)
false && true
false
$input = 'apple.com/ru';
$host = parse_url($input, PHP_URL_HOST);
if ($input === $host) {
// передан только домен
}
(min-width: 1024px)
(max-width: 1023px)
<input name="answers[]" value="1" type="checkbox" checked>
<input name="answers[]" value="2" type="checkbox">
<input name="answers[]" value="3" type="checkbox" checked>
$_POST['answers']; // [1,3]
<input name="answer" value="1" type="radio">
<input name="answer" value="2" type="radio" checked>
<input name="answer" value="3" type="radio">
$_POST['answer']; // 2
env()
If you execute theconfig:cache
command during your deployment process, you should be sure that you are only calling theenv
function from within your configuration files. Once the configuration has been cached, the.env
file will not be loaded and all calls to theenv
function will returnnull
.