- var_dump: documentation ( source)
<?php
class UserController {
public $data;
}
$userControllerObject = new UserController;
$exludedAction = [UserController::class => [
"login", "register"
]
];
$type = get_class($userControllerObject);
$cl = array_key_exists($type, $exludedAction);
var_dump($cl);