- var_dump: documentation ( source)
- base64_decode: documentation ( source)
- unserialize: documentation ( source)
- serialize: documentation ( source)
- base64_encode: documentation ( source)
<?php
class Test
{
protected $test = '';
}
$test = new Test();
echo 'before' . PHP_EOL;
foreach ($test as $key => $value) {
echo $key . ' ' . $value . PHP_EOL;
}
$test->testing = 'testing';
$test->_testing = 'testing2';
echo 'after' . PHP_EOL;
foreach ($test as $key => $value) {
echo $key . ' ' . $value . PHP_EOL;
}
var_dump($test);
$test2 = unserialize(base64_decode(base64_encode(serialize($test))));
var_dump($test2);
echo 'round2' . PHP_EOL;
foreach ($test as $key => $value) {
echo $key . ' ' . $value . PHP_EOL;
}