- unserialize: documentation ( source)
- serialize: documentation ( source)
<?php
$test = NULL;
$test2 = array();
echo empty($test2) ? 'yes1' : 'no1';
$test3 = serialize($test2);
echo $test3.PHP_EOL;
echo empty(unserialize($test)) ? 'Yes'.PHP_EOL : 'No'.PHP_EOL;