Function __global->get_version_dotted__from_anything

Definitions

sources/version2.php

  • Gets any random way of writing a version number (in all of the software's history) and makes it a dotted style like "3.2.beta2".Note that the dotted format is not compatible with PHP's version_compare function directly but $long_dotted_number_with_qualifier from get_version_components__from_dotted() is.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$any_format string No No required parameter N/A N/A Any reasonable input

Returns

  • Dotted version number
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Gets any random way of writing a version number (in all of the software's history) and makes it a dotted style like "3.2.beta2".Note that the dotted format is not compatible with PHP's version_compare function directly but $long_dotted_number_with_qualifier from get_version_components__from_dotted() is.
 *
 * @param  string $any_format Any reasonable input
 * @return string Dotted version number
 */

function get_version_dotted__from_anything(string $any_format) : string