- var_dump: documentation ( source)
- serialize: documentation ( source)
<?php
class Ab implements Serializable{
/**
* @var ElementDataTypeImpl
*/
protected $x;
function __construct()
{
$this->x = 'val';
}
public function serialize()
{
throw new Exception('Can\' serialize ');
}
public function unserialize()
{
throw new Exception('Can\' serialize ');
}
}
var_dump(serialize(new Ab()));
die;