How can I detect which request type was used (GET, POST, PUT or DELETE) in PHP?
$request = new \Zend\Http\PhpEnvironment\Request(); $httpMethod = $request->getMethod();
In this way you can also achieve in zend framework 2 also. Thanks.