Mecha CMS

To::path()

Convert public URL into private file path.

2.0.0Static

To::path(string $in);

Example:

$A = To::path('https://mecha-cms.com/path/to/file.html');

Result:

$A = '.\path\to\file.html';