libvirt_version Get libvirt version
&reftitle.description; array libvirt_version string type null

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

&reftitle.parameters;

type

  Hypervisor type against which the library was compiled. If type is NULL, "Xen" is assumed.

&reftitle.returnvalues;

Associative array containing version information. It cointains these members:

- libvirt.release
- libvirt.major
- libvirt.minor
- type.release
- type.major
- type.minor

&reftitle.examples;

`libvirt_version` example

Get version of libvirt and xen driver.

    <?php

    	$version=libvirt_version("xen")
    	print_r($version);

    ?>

&example.outputs.similar;

    Array
    (
        [libvirt.release] => 0
        [libvirt.minor] => 6
        [libvirt.major] => 0
        [type.release] => 1
        [type.minor] => 0
        [type.major] => 3
    )