Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cairo_svg_surface_get_versions(3) [php man page]

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)

Check Out this Related Man Page

APC_DEC(3)								 1								APC_DEC(3)

apc_dec - Decrease a stored number

SYNOPSIS
int apc_dec (string $key, [int $step = 1], [bool &$success]) DESCRIPTION
Decreases a stored integer value. PARAMETERS
o $key - The key of the value being decreased. o $step - The step, or value to decrease. o $success - Optionally pass the success or fail boolean value to this referenced variable. RETURN VALUES
Returns the current value of $key's value on success, or FALSE on failure EXAMPLES
Example #1 apc_dec(3) example <?php echo "Let's do something with success", PHP_EOL; apc_store('anumber', 42); echo apc_fetch('anumber'), PHP_EOL; echo apc_dec('anumber'), PHP_EOL; echo apc_dec('anumber', 10), PHP_EOL; echo apc_dec('anumber', 10, $success), PHP_EOL; var_dump($success); echo "Now, let's fail", PHP_EOL, PHP_EOL; apc_store('astring', 'foo'); $ret = apc_dec('astring', 1, $fail); var_dump($ret); var_dump($fail); ?> The above example will output something similar to: Let's do something with success 42 41 31 21 bool(true) Now, let's fail bool(false) bool(false) SEE ALSO
apc_inc(3). PHP Documentation Group APC_DEC(3)
Man Page

4 More Discussions You Might Find Interesting

1. HP-UX

SVG support

Okay, I know this is not necessarily a specific HP-UX OS question, but I'm hoping someone here may simply know the answer. We're trying to find out if SVG images are supported and viewable in any Mozilla (or Firefox) versions (1.5 or up) that are ported to HP-UX. On some platforms SVG requires a... (0 Replies)
Discussion started by: nedlyj
0 Replies

2. HP-UX

Is there any way to get old HP-UX versions?

I got my hands on a HP9000/380 and need a (really) old version of HP-UX, like 7 or 8. Is there any vendor who sells older versions? I did a quick search here and checked the FAQ and HPs HP-UX site but couldn't find anything. :confused: Any help is appreciated! (4 Replies)
Discussion started by: dlundh
4 Replies

3. Shell Programming and Scripting

How to print array values whose name is inside a variable

I have a array as CArray=( a1 a2 ) and a1,a2,a3 are also array as: a1=(1 2 3) a2=(3 4 5) now I have this in my code: for i in `echo "${CArray}"` do echo ${$i} done It is giving error as :"bad substitution" It should give me value as 1 2 3 3 4 5 how can I get this...Can u please... (2 Replies)
Discussion started by: joshilalit2004
2 Replies

4. Fedora

All different versions of UNIX

Hello, I am very new at this and would like to know how many versions of Unix there are and all of the different versions of unix. (3 Replies)
Discussion started by: rosanna azani
3 Replies