downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

CairoSvgSurface::restrictToVersion> <CairoSvgSurface::__construct
[edit] Last updated: Fri, 24 Feb 2012

view this page in

CairoSvgSurface::getVersions

cairo_svg_surface_get_versions

(PECL cairo >= 0.1.0)

CairoSvgSurface::getVersions -- cairo_svg_surface_get_versionsUsed to retrieve a list of supported SVG versions

Descrição

Estilo orientado a objetos (method):

public static array CairoSvgSurface::getVersions ( void )

Estilo de procedimentos:

array cairo_svg_get_versions ( void )

Returns a numerically indexed array of currently available CairoSvgVersion constants. In order to retreive the string values for each item, use CairoSvgSurface::versionToString().

Parâmetros

Esta função não contém parâmetros.

Valor Retornado

Returns a numerically indexed array of integer values.

Exemplos

Exemplo #1 CairoSvgSurface::getVersions() example

<?php
/* Grab our list of versions */
$versions CairoSvgSurface::getVersions();
var_dump($versions);

/* echo the string name of each version */
foreach($versions as $id) {
    echo 
CairoSvgSurface::versionToString($id), PHP_EOL;
}
?>

O exemplo acima irá imprimir algo similar a:

array(2) {
  [0]=>
  int(0)
  [1]=>
  int(1)
}
SVG 1.1
SVG 1.2

Exemplo #2 Estilo de procedimentos

<?php
/* Grab our list of versions */
$versions cairo_svg_surface_get_versions();
var_dump($versions);

/* echo the string name of each version */
foreach($versions as $id) {
    echo 
cairo_svg_surface_version_to_string($id), PHP_EOL;
}
?>

O exemplo acima irá imprimir algo similar a:

array(2) {
  [0]=>
  int(0)
  [1]=>
  int(1)
}
SVG 1.1
SVG 1.2

Veja Também



add a note add a note User Contributed Notes CairoSvgSurface::getVersions
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites