var_export php code example
Example 1: php var_export to string
$someString = var_export($anyVariable, true);
Example 2: var_export
var_export ( mixed $value , bool $return = false ) : string|null
Example #1 var_export() Examples
<?php
$a = array (1, 2, array ("a", "b", "c"));
var_export($a);
?>
The above example will output:
array (
0 => 1,
1 => 2,
2 =>
array (
0 => 'a',
1 => 'b',
2 => 'c',
),
)