stream_context_get_options

Stream_context_get_options — Retrieve options for a stream/wrapper/context

Returns an array of options on the specified stream or context.

<?php
 $params = array("method" => "POST");
 stream_context_set_default(array("http" => $params));
 echo '<pre>';print_r(stream_context_get_options(stream_context_get_default()));
?>
Share

Leave a Reply

Your email address will not be published. Required fields are marked *