- var_dump: documentation ( source)
<?php declare(strict_types = 1);
class Client
{
/**
* Pass Login variable
*
* @var array<string, string|null>
*/
private array $_login, $_created_ip;
}
$ref = new \ReflectionClass(Client::class);
foreach ($ref->getProperties() as $prop) {
var_dump($prop->getDocComment());
}