How can I detect which request type was used (GET, POST, PUT or DELETE) in PHP?
In core php you can do like this :