$arr = [
'2018-11-16 - test1' => [
"date" => "2018-11-16"
"type" => "test1"
"all" => "16",
"new" => "4",
"queue" => "1"
],
];
<?php
$names = array(
array(
'name' => 'Название кнопки 1',
'label-images' => '<img class="notChecked" src="http://0.jpg"><img class="ifChecked" src="http://1.jpg">',
'descr' => '<b>заголовок 1</b>Текст описания картинки 1',
),
array(
'name' => 'Название кнопки 2',
'label-images' => '<img class="notChecked" src="http://0.jpg"><img class="ifChecked" src="http://1.jpg">',
'descr' => '<b>заголовок 1</b>Текст описания картинки 1',
),
array(
'name' => 'Название кнопки 3',
'label-images' => '<img class="notChecked" src="http://0.jpg"><img class="ifChecked" src="http://1.jpg">',
'descr' => '<b>заголовок 1</b>Текст описания картинки 1',
),
);
for ($i = 0; $i < count($names); $i++) : ?>
<div>
<input type="radio" name="Drawing" value="<?= $names[$i]['name']; ?>" id="DrawingA<?= $i + 1; ?>">
<label for="DrawingA<?= $i + 1; ?>">
<?= $names[$i]['label-images']; ?>
<br><?= $names[$i]['name']; ?>
</label>
<p class="podpis">
<?= $names[$i]['descr']; ?>
</p>
</div>
<?php endfor; ?>
class AnotherPencil extends SomePencil {
constructor(color, type) {
super(color, type);
}
};
foreach ($estate_parameters as $key )
$estate_parameters = array(estate_address_house: array([0]=>11),estate_address_max_level: array([0]=>9)
foreach (array_keys($estate_parameters) as $key )
foreach ($estate_parameters as $key => $val)
location ~* ^/images/.+\.(jpg|jpeg|gif|png|svg)$ {
if ($request_method !~ ^(GET|HEAD)$) {
proxy_pass http://images/;
}
if ($request_method ~ ^(GET|HEAD)$) {
try_files $uri $uri/;
}
}
class MyModel extends ActiveRecord {
const STATUS_LIST = ['active' => 'Active', 'live' => 'Live', 'error'=>'Error'];
}
'filter' => Html::activeDropDownList($searchModel, 'status', MyModel::STATUS_LIST, ['class' => 'form-control', 'prompt' => 'Все']),
[
// проверяет, что значение "level" равно Live, Active или Error
['level', 'in', 'range' => array_keys(static::STATUS_LIST)],
]