Back to Stream class

Method get_meta_data

public array|bool
get_meta_data
()
Get the stream metadata
Returns
  • array|bool header/metadata
Since
  • 1.7.0
-
  • https://www.php.net/manual/en/function.stream-get-meta-data.php
Class: Stream
Project: Joomla

Method get_meta_data - Source code

/**
 * Get the stream metadata
 *
 * @return  array|boolean  header/metadata
 *
 * @link    https://www.php.net/manual/en/function.stream-get-meta-data.php
 * @since   1.7.0
 */
public function get_meta_data()
{
    if (!$this->fh) {
        $this->setError(Text::_('JLIB_FILESYSTEM_ERROR_STREAMS_FILE_NOT_OPEN'));
        return false;
    }
    return stream_get_meta_data($this->fh);
}