while (true) {
// do something
sleep(1);
}
<?php
$json = '{"part-1": {"t13": ["https://gdz-ru.com/attachments/images/tasks/000/109/238/0002/5c373b8ceb0f8.jpg"], "t14": ["https://gdz-ru.com/attachments/images/tasks/000/109/238/0002/5c373b8cec0b4.jpg"], "t16": ["https://gdz-ru.com/attachments/images/tasks/000/109/238/0002/5c373b8cee086.jpg", "https://gdz-ru.com/attachments/images/tasks/000/109/238/0002/5c373b8cee4c9.jpg"], "t19\u201320": ["https://gdz-ru.com/attachments/images/tasks/000/109/238/0002/5c373b8cf079c.jpg"], "t21\u201322": ["https://gdz-ru.com/attachments/images/tasks/000/109/238/0002/5c373b8cf2ae5.jpg", "https://gdz-ru.com/attachments/images/tasks/000/109/238/0002/5c373b8cf2fa0.jpg"]}, "part-2": {"t5": ["https://gdz-ru.com/attachments/images/tasks/000/109/238/0002/5c373b8d20a76.jpg"], "t6\u20137": ["https://gdz-ru.com/attachments/images/tasks/000/109/238/0002/5c373b8d219bc.jpg"], "t8": ["https://gdz-ru.com/attachments/images/tasks/000/109/238/0002/5c373b8d25274.jpg"]}}';
$obj = json_decode($json, true);
?>
<div class="spoiler">
<div class="spoiler-head">* Часть</div>
<div class="spoiler-body extc">
<?php
foreach($obj as $k => $a) {
if ($k[0] !== 't') continue;
foreach($a as $l) {
$res = '<a href="' . $k . '">' . str_replace('t','',$k) . '</a>';
echo $res;
echo '<br>';
}
}
?>
</div>
</div>
public function checkDeletePermission($role) {
$this->checkPermission($this->getRole($role), Action::DELETE);
}
public function checkReadPermission($role) {
$this->checkPermission($this->getRole($role), Action::READ);
}
public function checkCreatePermission($role) {
$this->checkPermission($this->getRole($role), Action::CREATE);
}
if (element.previousSibling !== null) {
const lowerName = element.previousSibling.nodeName.toLowerCase();
const tags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'img'];
if (!tags.includes(lowerName) {
// ...
}
}
const tags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'img'];
if (element.previousSibling !== null && !tags.includes(element.previousSibling.nodeName.toLowerCase())) {
// ...
}
The name root may have originated because root is the only user account with permission to modify the root directory of a Unix system
axios.defaults.baseURL = 'https://api.example.com';