Function : isAbsolutePath

This function is used to determine whether a url format resembles an absolute path format or not. It uses an absolute path pattern to validate the argument supplied.

 var_dump( isAbsolutePath('D://some/path') ); // true
                  

 var_dump( isAbsolutePath('/some/path') ); // true
                  

 var_dump( isAbsolutePath('some/path') ); // false
                  

 var_dump( isAbsolutePath('http://some/url') ); // false