<?php
res stream_context_create ( arr $options = ? , arr $params = ? )
where,
$options = Must be an associative array of
associative arrays in the format:
$arr['wrapper']['option'] = $value.
$params = Must be an associative array in the format:
$arr['parameter'] = $value.
?>
<?php
$f1 = 'test';
$opts1 = [ 'http' => [ 'method'=>"POST",
'header' => "Accept-language: en",
'content' => $f1 ] ];
$cntxt1 = stream_context_create($opts1);
var_dump($cntxt1);
echo '<br><br>or<br><br>';
$cntxt1a = (array)stream_context_create($opts1);
foreach($cntxt1a as $k => $v);
echo "$k => $v<bbr>";
echo '<br><br>';
?>