Home > PHP > Function > Fileinfo > finfo_buffer()

finfo_buffer()

finfo_buffer - Return information about a string buffer

Syntax

string finfo_buffer (resource $finfo, string $string, int $options, resource $context, string $string, int $options, resource $context, resource $finfo, string $string, int $options, resource $context, string $string, int $options, resource $context)

Arguments

  • finfo - Fileinfo resource returned by finfo_open().
  • string - Content of a file to be checked.
  • options - One or disjunction of more Fileinfo constants.
  • context
  • string
  • options
  • context
  • finfo - Fileinfo resource returned by finfo_open().
  • string - Content of a file to be checked.
  • options - One or disjunction of more Fileinfo constants.
  • context
  • string
  • options
  • context

Description

This function is used to get information about binary data in a string.

Version

PHP 5.3.0, PECL fileinfo >= 0.1.0

Return value

Returns a textual description of the string argument, or FALSE if an error occurred.