Prev Question
Next Question

Consider the following code. What can be said about the call to file_get_contents? $getdata
= “foo=bar”; $opts = array(‘http’ => array( ‘method’ => ‘POST’, ‘header’ => ‘Content-type:
application/x-www-form-urlencoded’, ‘content’ => $getdata ) ); $context =
stream_context_create($opts); $result = file_get_contents(‘’,
false, $context);

A GET request will be performed on

A POST request will be performed on

An error will be displayed

Prev Question
Next Question

Leave a Reply

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