finfo_buffer(3) php man page | unix.com

Man Page: finfo_buffer

Operating Environment: php

Section: 3

FINFO_BUFFER(3) 							 1							   FINFO_BUFFER(3)

finfo_buffer - Return information about a string buffer

       Procedural style

SYNOPSIS
string finfo_buffer NULL NULL (resource $finfo, string $string, [int $options = FILEINFO_NONE], [resource $context])
DESCRIPTION
Object oriented style string finfo::buffer NULL NULL (string $string, [int $options = FILEINFO_NONE], [resource $context]) This function is used to get information about binary data in a string.
PARAMETERS
o $finfo - Fileinfo resource returned by finfo_open(3). o $string - Content of a file to be checked. o $options - One or disjunction of more Fileinfo constants. o $context -
RETURN VALUES
Returns a textual description of the $string argument, or FALSE if an error occurred.
EXAMPLES
Example #1 A finfo_buffer(3) example <?php $finfo = new finfo(FILEINFO_MIME); echo $finfo->buffer($_POST["script"]) . " "; ?> The above example will output something similar to: application/x-sh; charset=us-ascii
SEE ALSO
finfo_file(3). PHP Documentation Group FINFO_BUFFER(3)
Related Man Pages
maxdb_fetch_field(3) - php
finfo_file(3) - php
mysqli_fetch_field_direct(3) - php
mysqli_field_tell(3) - php
apr::finfo(3pm) - debian
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation
Please Welcome Nicki Paul to the Moderator Team!