Unix and Linux Discussions Tagged with versions |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
0 |
2,376 |
OS X (Apple) |
|
|
|
1 |
1,627 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
77,309 |
Filesystems, Disks and Memory |
|
|
|
7 |
10,810 |
Shell Programming and Scripting |
|
|
|
1 |
7,109 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
10,980 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,386 |
IP Networking |
|
|
|
1 |
4,092 |
IP Networking |
|
|
|
1 |
2,802 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
8,187 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
7,108 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
13,206 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,790 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
9,570 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,595 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
9,169 |
Cybersecurity |
|
|
|
3 |
2,809 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
6,622 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
1 |
9,620 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,745 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,061 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,369 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,073 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,387 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,080 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
20,061 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
6,906 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,555 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
7,181 |
Cybersecurity |
CAIRO_SVG_SURFACE_GET_VERSIONS(3) 1 CAIRO_SVG_SURFACE_GET_VERSIONS(3)
CairoSvgSurface::getVersions - Used to retrieve a list of supported SVG versions
Object oriented style (method):
SYNOPSIS
publicstatic array CairoSvgSurface::getVersions (void )
DESCRIPTION
Procedural style:
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.
PARAMETERS
This function has no parameters.
RETURN VALUES
Returns a numerically indexed array of integer values.
EXAMPLES
Example #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;
}
?>
The above example will output something similar to:
array(2) {
[0]=>
int(0)
[1]=>
int(1)
}
SVG 1.1
SVG 1.2
Example #2
Procedural style
<?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;
}
?>
The above example will output something similar to:
array(2) {
[0]=>
int(0)
[1]=>
int(1)
}
SVG 1.1
SVG 1.2
SEE ALSO
CairoSvgSurface::versionToString.
PHP Documentation Group CAIRO_SVG_SURFACE_GET_VERSIONS(3)