ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:version

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
v5:reference:connection:version [2023/06/04 12:10] – created dregadv5:reference:connection:version [2023/06/04 12:40] (current) – [Usage] $ADODB_vers dregad
Line 12: Line 12:
 The function returns the ADOdb version number. The function returns the ADOdb version number.
  
-<WRAP clear/>+ 
 +===== $ADODB_vers ===== 
 + 
 +This global variable should be considered as a constant.  
 +It contains the **ADOdb version and release date** in the following format: 
 + 
 +''vX.Y.Z[-suffix]  {date|Unreleased}'' 
 + 
 +The version number (X = major, Y = minor, Z = hotfix components, separated by dots ''.'') is prefixed with a ''v'', and has an optional //suffix// separated with a dash ''-'' indicating a pre-release version (e.g. ''-beta.1''). The release date in ''yyyy-mm-dd'' format is tagged at the end after 2 spaces. 
 + 
 +While under development, a release will have the ''-dev'' suffix, and the date will be replaced by the ''Unreleased'' string, e.g. ''v5.23.0-dev  Unreleased''
 + 
 +<WRAP info> 
 +The //version()// function extracts the version number from //$ADODB_vers//
 +</WRAP> 
  
 ===== Usage ===== ===== Usage =====
Line 24: Line 39:
     // backwards compatible code     // backwards compatible code
 } }
 +</code>
 +
 +<code php>
 +echo $ADODB_vers;
 +// v5.22.5  2023-04-03
 </code> </code>
  
Line 32: Line 52:
 // 5.22.5 // 5.22.5
 </code> </code>
- 
  
v5/reference/connection/version.1685873432.txt.gz · Last modified: 2023/06/04 12:10 by dregad