Question from the PHP8 test

Print the class name of a PHP object

Easy

Is this syntax valid?

<?php

class User
{}

$user= new User;

echo $user :: class;
Author: W3D TeamStatus: PublishedQuestion passed 565 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!