Method: f::convert

Convert the filename to a new extension

Info

Syntax

f::convert($name, $type='jpg')

Parameters

Return (string)

Example


$convert = f::convert('test.txt', 'jpg');
// convert will be test.jpg