<?php
$a = array('samlp:aExtensions', null,
array('ext:aReferer', null,
array('ext:aRefererScheme', null, "on" == $_SERVER["HTTPS"] ? "https" : "http"),
array('ext:aRefererHost', null, $_SERVER["SERVER_NAME"]),
array('ext:aRefererPort', null, $_SERVER["SERVER_PORT"]),
),
);
$b = array('samlp:bExtensions', null,
array('ext:bReferer', null,
array('ext:bRefererScheme', null, "on" == $_SERVER["HTTPS"] ? "https" : "http"),
array('ext:bRefererHost', null, $_SERVER["SERVER_NAME"]),
array('ext:bRefererPort', null, $_SERVER["SERVER_PORT"]),
),
);
$c = array_merge($a, $b);
var_dump($c);
preferences:
35.42 ms | 402 KiB | 5 Q