protected function isAbsolutePath($filePath)
    {
        if ($filePath === null || $filePath === '') {
            return false;
        }
    
        if ($filePath[0] === DIRECTORY_SEPARATOR || preg_match('~\A[A-Z]:(?![^/\\\\])~i', $filePath) > 0) {
            return true;
        }
    
        return false;
    }
protected function isAbsolutePath($filePath)
    {
        if ($filePath === null || $filePath === '') {
            return false;
        }
    
        if ($filePath[0] === DIRECTORY_SEPARATOR || preg_match('~\A[A-Z]:(?![^/\\\\])~i', $filePath) > 0) {
            return true;
        }
    
        return false;
    }
protected function isAbsolutePath ( $ filePath ) { if ( $ filePath === null || $ filePath === '' ) { return false ; } if ( $ filePath [ 0 ] === DIRECTORY_SEPARATOR || preg_match ( '~\A[A-Z]:(?![^/\\\\])~i' , $ filePath ) > 0 ) { return true ; } return false ; }
Returns true if the given path is an absolute path

@param string $filePath
@return boolean
Returns true if the given path is an absolute path