class Product
{
private int $parentId;
private $nonTyped;
public function __construct(
private readonly int $id
) {
}
}
$obj = new Product(1);
var_dump($obj);
// class \Product#2 (3) {
// private int $parentId => *uninitialized*
// private $nonTyped => NULL
// private readonly int $id => int(1)
// }
return $this->parentId ?? null;
). - var_dump( $str );
+ echo bin2hex($str);
Получаем cf f0 e8 e2 e5 f2 20 32 30 31 39 20 cc e8 f0 21
Привет 2019 Мир!
function rotateToLast(&$streamArrUrl, $streamUrl, $stream) {
if (count($streamArrUrl) === 0) {
return;
}
if (empty($streamUrl)) {
$streamArrUrl = [$streamUrl];
return;
}
if (ipTV_lib::$settings["priority_backup"] === 1) {
return;
}
if (empty($stream["server_info"]["current_source"])) {
return;
}
$sourceIdx = array_search($stream["server_info"]["current_source"], $streamArrUrl);
if ($sourceIdx === false) {
return;
}
$tmp = array_slice($streamArrUrl, $sourceIdx + 1);
array_splice($streamArrUrl, $sourceIdx + 1);
$streamArrUrl = array_merge($tmp, $streamArrUrl);
}
rotateToLast($streamArrUrl, $streamUrl, $stream);