json_encode([
'm' => "сообщение",
'p' => array_merge([$session], $array)
]);
$x = [0 => ['#ff069f'], 1 => ['#FF5500'], 2 => ['#009900']];
echo $x[1][0][4];
// 5
$x = "Привет!";
echo $x[0];
// �
$json = json_encode([
"api_key" => $api_key,
"message" => [
"global_substitutions" => [
"someVar" => "body.html"
],
"body" => [
"html" => $message
],
"subject" => $subject,
"from_email" => $from,
"from_name" => "NAME",
"reply_to" => $reply,
"track_links" => 1,
"track_read" => 1,
"recipients": [
["email" => $to]
]
]
]);
<html>
<head>
<script>
function set_cookie () {
var now = new Date()
var time = now.getTime()
time += 19360000 * 1000
now.setTime(time)
document.cookie = 'beget=begetok' + '; expires=' + now.toGMTString() + '; path=/'
}
set_cookie()
location.reload()
</script>
</head>
<body>
</body>
</html>