GC_Filesystem_SSH2::get_contents_array()

最后更新于:2021-11-27 20:21:31

GC_Filesystem_SSH2::get_contents_array( string$file)

Reads entire file into an array.

参数

$file

(string) (Required) Path to the file.

响应

(array|false) File contents in an array on success, false on failure.

源文件

文件: gc-admin/includes/class-gc-filesystem-ssh2.php

	public function get_contents_array( $file ) {
		return file( $this->sftp_path( $file ) );
	}