- var_dump: documentation ( source)
<?php
class WP_Post {
public $filter;
public function __get( $property ) {
return $this->$property;
}
}
$post = new WP_Post();
$post->filter = 'foo';
var_dump( $post->filter );
unset( $post->filter );
var_dump( $post->filter );