- var_dump: documentation ( source)
<?php
class X {
/**
* @annotation1
*/
// Some comment
public $x = "...", $y = '...';
}
$reflection = new ReflectionProperty('\X', 'x');
var_dump($reflection->getDocComment());
$reflection = new ReflectionProperty('\X', 'y');
var_dump($reflection->getDocComment());