How can one determine the COM-Interface name for a program in PHP?

To determine the COM-Interface name for a program in PHP, you can use the `com_get` function to retrieve the object's type and then use the `com_typename` function to get the COM-Interface name.

$comObject = new COM('Program.Object');
$comType = com_get($comObject);
$comInterfaceName = com_typename($comType);
echo $comInterfaceName;