HTTP/2 200
server: nginx
date: Fri, 18 Jul 2025 23:27:41 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
x-olaf: ⛄
link:
; rel="https://api.w.org/"
link:
; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
x-frame-options: SAMEORIGIN
content-encoding: gzip
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 2
WP_Filesystem_Base::get_contents_array() – Method | Developer.WordPress.org
WordPress Developer Resources
WP_Filesystem_Base::get_contents_array()
WP_Filesystem_Base::get_contents_array( string $file ): array|false
Reads entire file into an array.
$file
stringrequiredPath to the file.
array|false File contents in an array on success, false on failure.
Version | Description |
---|
2.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.