Method: v::filename

Checks for valid filename

Info

Syntax

v::filename($string)

Parameters

Return (boolean)

Example


if(v::filename('test.txt')) echo 'That is a valid filename';