Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Returns the name of the class of an object
<?php get_class(object $object = ?): string
<?php                 });

            }

        };

        $class = get_class($object);



        $firstResult = $class::getNumber();
<?php                 });

            }

        };

        $class = get_class($object);



        foreach (range('A', 'Z') as $letter) {

            $firstResult = $class::getNumberForLetter($letter);
<?php                 });

            }

        };

        $aClass = get_class($a);

        $bClass = get_class($b);



        $this->assertEquals('A', $aClass::getName());
<?php             }

        };

        $aClass = get_class($a);

        $bClass = get_class($b);



        $this->assertEquals('A', $aClass::getName());

        $this->assertEquals('B', $bClass::getName());