class Child extends Parent {
public function rules()
{
return array_merge(parent::rules(), [
'bioString' => ['bio', 'string'],
'publicEmailPattern' => ['public_email', 'email'],
]);
}
}
<select name="select_value">
<option value="0">Ващ выбор</option>
<option value="1">Выбор 1</option>
<option value="2">Выбор 2</option>
</select>
$select = trim($_POST['select_value']); // что вписывать сюда ?
<div class = "post">
стоит не там где нужно.<div class="wrapper">
<nav>
<div class = "logo"></div>
<ul>
<li><a href = "login.html">Войти</a></li>
<li><a href = "index.html#aboutme">Обо мне</a></li>
<li><a href = "blog.html">Блог</a></li>
<li><a href = "index.html#getintouch">Обратная связь</a></li>
</ul>
</nav>
<main>
<h1>Привет! Добро пожаловать в мой Блог!</h1>
<?php
require_once ('main_blog.php');
while ($note = mysqli_fetch_array($select_note))
{
?>
<div class = "information">
<!--<p>Кат: <a href = "#">Кино, Знаменитости</a></p>
<p><a href = "#" class = "likes">136 Нравится</a></p>-->
<?php require_once('count_comments.php') ?>
<p><a href = "#" class = "comments"><?php echo $allcomments_num;?> Комментарий</a></p>
</div>
<div class = "post">
<div class = "date"><?php $note['created'] = date("d M"); echo $note['created'];?></div>
<h2><?php echo $note['title'];?></h2>
<p><?php echo $note['article']; ?></p>
<a href = "#">Читать дальше</a>
</div>
<?php
}
?>
</main>
$arr = array('one' => 1, 'two' => 2, 'three' => 3);
$other = array('two', 'three');
var_dump(array_intersect_key($arr, array_flip($other)));