PHP code example of version / version
1. Go to this page and download the library: Download version/version library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
version / version example snippets
use Version\Version;
use Version\Compare;
$vers = array();
$vers[] = Version::parse('1.1.1d1');
$vers[] = '1.1.1';
$obj = new Compare();
usort( $vers, array( $obj, 'compare' ) );