I have an API that takes parameters from a post through JSON and I want to extract one of the values in an array for a key value pair. However, despite many attempts, I can\'t
From your code above $json is a string and not a json object, your should use $request to access numberofhits
$json
$request
$request['numberofhits']