Is it common for students who have learned C++ to transition to using classes in PHP?

It is common for students who have learned C++ to transition to using classes in PHP since both languages support object-oriented programming principles. To create a class in PHP, you can use the `class` keyword followed by the class name and curly braces containing class properties and methods.

class MyClass {
    public $property;

    public function myMethod() {
        // method implementation
    }
}

$instance = new MyClass();
$instance->property = 'value';
$instance->myMethod();