- serialize: documentation ( source)
<?php
class Test{
public $y;
function x(){
print 'asd';
}
function __construct(){
$test = 'y';
if($this->$test() === TRUE){
echo 12345;
}
}
}
$x = new Test();
echo serialize($x);