(php-libvirt 0.1)
libvirt_version — Get libvirt version
Provides two information back, libvirt is the version of the library while type will be the version of the hypervisor type against which the library was compiled
Hypervisor type against which the library was compiled. If type is NULL, "Xen" is assumed.
Associative array containing version information. It cointains these members:
Example #1 libvirt_version() example
Get version of libvirt and xen driver.
<?php
$version=libvirt_version("xen")
print_r($version);
?>
The above example will output something similar to:
Array ( [libvirt.release] => 0 [libvirt.minor] => 6 [libvirt.major] => 0 [type.release] => 1 [type.minor] => 0 [type.major] => 3 )