- var_dump: documentation ( source)
- base64_decode: documentation ( source)
- mime_content_type: documentation ( source)
- fclose: documentation ( source)
- fwrite: documentation ( source)
- fopen: documentation ( source)
<?php
$string = base64_decode('R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=');
$resource = fopen('php://tmp', w);
fwrite($resource, $string);
fclose($resource);
var_dump(mime_content_type('php://tmp'));