var_export must return valid PHP code, so when given a resource — which can't be simply copied — it returns NULL, unlike var_dump. A debugging trap that once cost me a whole day of chasing a phantom DB connection failure.
A quick reference on PHP's header(): the function signature, the replace parameter, the RFC2616 status-code classes (1xx-5xx) and the full list of codes, with example header() calls.