View::isHaveExtension

Posted on November 25, 2016

Is path have extension?

Example usage

$yes = View::isHaveExtension('~/somefolder/file_with_extension.ex');
// TRUE

$no = View::isHaveExtension('~/somefolder/file_without_extension');
// FALS

Parameters

$path (string) (required)

Return Value

bool YES / NO

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *