$events = News::find()
->where(['LIKE', 'date_news', '____-' . $incident . '-__', false])
->all();
$text = 'погода';
$pattern = '#^(погода|время|новости)$#';
if (preg_match($pattern, $text, $match)) {
echo $text;
}
SELECT t1.name, t2.name, IFNULL(t3.qty, 0) as qty FROM table_box as t1
INNER JOIN table_product as t2
LEFT JOIN table_link as t3 ON (t3.link1 = t1.id1 AND t3.link2 = t2.id2);
find / -type d -perm -a=w
find / -type d -perm -a=w > list