TwistPHP Documentation

findVersion

File path: dist/twist/Core/Utilities/File.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

findVersionFind a file in a directory when there is multiple of the same file with many different version numbers.

Parameters

Name Type Description
$strDirectorystringn/a
$strFilePrefixstringn/a
[$strVersion = null]stringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strDirectory 'foo';
$strFilePrefix 'foo';
$strVersion null;

//Call the function findVersion with the example vars
Twist::File() -> findVersion($strDirectory$strFilePrefix$strVersion);