We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents acfcac4 + 569b773 commit 4b7df6fCopy full SHA for 4b7df6f
components/var_exporter.rst
@@ -28,7 +28,7 @@ PHP code, similar to PHP's :phpfunction:`var_export` function::
28
29
$exported = VarExporter::export($someVariable);
30
// store the $exported data in some file or cache system for later reuse
31
- $data = file_put_contents('exported.php', $exported);
+ $data = file_put_contents('exported.php', '<?php return '.$exported.';');
32
33
// later, regenerate the original variable when you need it
34
$regeneratedVariable = require 'exported.php';
0 commit comments