WP_CLI\Utils

is_path_absolute()WP-CLI 1.0

No Hooks.

Return

null. Nothing.

Usage

is_path_absolute( $path );
$path (required)
-

Code of is_path_absolute() WP-CLI 2.7.0-alpha

function is_path_absolute( $path ) {
	// Windows
	if ( isset( $path[1] ) && ':' === $path[1] ) {
		return true;
	}

	return '/' === $path[0];
}