+++ date = "2019-04-30T23:16:13+00:00" publishdate = "2023-12-29T07:08:55+00:00" title = "Variable Dumping Post Requests in PHP" slug = "variable-dump-to-error-log" author = "Thedro" tags = ["php","snippets"] type = "posts" summary = "This is a brilliant way to dump variables to a webserver's error log in PHP." draft = "" syntax = "1" toc = "" updated = "" +++ {{< image source="/images/variable-dump-to-error-log.png" title="PHP Logo" >}} PHP manual on `var_dump` {{< /image >}} This is a brilliant way to dump variables to a webserver's error log in {{< sidenote mark="`PHP`." set="right" >}} The [source of this code snippet](https://gist.github.com/mkolb/2379498). {{< /sidenote >}} This is especially helpful when experimenting with `POST` requests in barebone environments. ```php