有没有人知道post使用JSON 的正确方法Guzzle?
$request = $this->client->post(self::URL_REGISTER,array(
'content-type' => 'application/json'
),array(json_encode($_POST)));
Run Code Online (Sandbox Code Playgroud)
我收到internal server error服务器的回复.它适用于Chrome Postman.
我有一个看起来像这样的config.php文件
return array(
"array1"=>
array(
"array2"=>"value"
)
);
Run Code Online (Sandbox Code Playgroud)
如何使用这样的函数动态提取array2值?
function getConfigValue(?)
{
$config = include("config.php");
return $config....
}
Run Code Online (Sandbox Code Playgroud)