Query: finfo_buffer
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
FINFO_BUFFER(3) 1 FINFO_BUFFER(3) finfo_buffer - Return information about a string buffer Procedural styleSYNOPSISstring finfo_buffer NULL NULL (resource $finfo, string $string, [int $options = FILEINFO_NONE], [resource $context])DESCRIPTIONObject 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.PARAMETERSo $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 VALUESReturns a textual description of the $string argument, or FALSE if an error occurred.EXAMPLESExample #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-asciiSEE ALSOfinfo_file(3). PHP Documentation Group FINFO_BUFFER(3)
Related Man Pages |
---|
finfo_open(3) - php |
finfo_buffer(3) - php |
maxdb_fetch_fields(3) - php |
maxdb_field_tell(3) - php |
apr::finfo(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Rules for Homework & Coursework Questions Forum |
UNIX.COM 2017 Year End Summary |
Status of UNIX.COM Forum Transformation |
Please Welcome Nicki Paul to the Moderator Team! |