Skip to content

reference:U getNewestVersion

Aaron Junker edited this page Apr 8, 2021 · 5 revisions

Function $U->getNewestVersion():array

Returns the newest version of USOC.

It asks the GitHub API for the newest Version of Case-Games/USOC.

Arguments

None.

Return value

["Name" => String|Bool, "Code" => Int, "URL" => String|Bool]

If getting the version didn't succeed every value is set to false.

Return an array with the following keys:

Name

Full name of the version (i.e. Pb2.4Bfx0).

Code

The code of the version (i.e. 20240900).

URL

Url to the download page.

Example

$U->getNewestVersion(); // ["Name" => "Pb2.4Bfx0", "Code" => 20240900, "URL" => "https://github.com/Case-Games/USOC/releases/tag/Pb2.4Bfx0"]

Clone this wiki locally