<button class="button"><?php pll_e('menu_btn') ?></button>
$str = 'hlsList: {"1080":"https://m1.rumer.club/manifest/MTc4LjE1OS4yMTYuMTQy/?video=https%3A%2F%2Fhls-t001-l001-c086-s001.intravideo.net%2F04_01_20%2F04%2F01%2F16%2FAYLFV5VV%2FAVEHPEEI.mp4%2Ftracks%2Fv1-a%2Fmaster.m3u8",
"480":"https://m1.rumer.club/manifest/MTc4LjE1OS4yMTYuMTQy/?video=https%3A%2F%2Fhls-t001-l001-c086-s001.intravideo.net%2F04_01_20%2F04%2F01%2F16%2FAYLFV5VV%2FAVEHPEEI.mp4%2Ftracks%2Fv2-a%2Fmaster.m3u8",
"720":"https://m1.rumer.club/manifest/MTc4LjE1OS4yMTYuMTQy/?video=https%3A%2F%2Fhls-t001-l001-c086-s001.intravideo.net%2F04_01_20%2F04%2F01%2F16%2FAYLFV5VV%2FAVEHPEEI.mp4%2Ftracks%2Fv1-a%2Fmaster.m3u8"}';
$json = str_replace('hlsList: ', '', $str);
$links = json_decode($json, true);
echo $links['720'];
select arr[1] = arr[array_upper(arr, 1)] as isEqual
from sort(ARRAY[1,87,5,456,34,1]) as arr; -- false
select arr[1] = arr[array_upper(arr, 1)] as isEqual
from sort(ARRAY[1,1,1]) as arr; -- true
select arr[1] = arr[array_upper(arr, 1)] as isEqual
from sort(ARRAY[0,0,0,0]) as arr; -- true
$result = curl_exec($ch);
preg_match_all('/^Set-Cookie:\s*([^;]*)/mi', $result, $matches);
$cookies = array();
foreach($matches[1] as $item) {
parse_str($item, $cookie);
$cookies = array_merge($cookies, $cookie);
}
var_dump($cookies);
https://stackoverflow.com/a/895858curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
q a b c=putStrLn $ b ++ [toEnum 10,'q','('] ++ show b ++ [','] ++ show c ++ [','] ++ show a ++ [')']
main=q "q a b c=putStrLn $ b ++ [toEnum 10,'q','('] ++ show b ++ [','] ++ show c ++ [','] ++ show a ++ [')']" "def q(a,b,c):print b+chr(10)+'q('+repr(b)+','+repr(c)+','+repr(a)+')'" "def e(x) return 34.chr+x+34.chr end;def q(a,b,c) print b+10.chr+'main=q '+e(b)+' '+e(c)+' '+e(a)+' '+10.chr end"
... а должно стать ...
const myElements = document.querySelectorAll('.some_class');
myElements.forEach( elem => elem.textContent = 42 );