JVersion/isCompatible: Difference between revisions
From Joomla! Documentation
m removing red link to edit, no existant pages |
m preparing for archive only |
||
| Line 43: | Line 43: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=isCompatible | category=isCompatible | ||
category=JVersion | category=JVersion | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 01:15, 25 March 2017
Description
Compares two "A PHP standardized" version number against the current Joomla! version
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
isCompatible($minimum)
| Parameter Name | Default Value | Description |
|---|---|---|
| $minimum |
Returns
boolean
Defined in
libraries/joomla/version.php
Importing
jimport( 'joomla.version' );
Source Body
function isCompatible ( $minimum ) {
return (version_compare( JVERSION, $minimum, 'eq' ) == 1);
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
Code Examples