Sophie

Sophie

distrib > Mageia > 7 > armv7hl > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 825

php-manual-en-7.2.11-1.mga7.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The finfo class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.mime-content-type.html">mime_content_type</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="finfo.buffer.html">finfo::buffer</a></div>
 <div class="up"><a href="book.fileinfo.html">Fileinfo</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.finfo" class="reference">

 <h1 class="title">The finfo class</h1>
 

 <div class="partintro"><p class="verinfo">(PHP 5 &gt;= 5.3.0, PHP 7, PECL fileinfo &gt;= 0.1.0)</p>


  <div class="section" id="finfo.intro">
   <h2 class="title">Introduction</h2>
   <p class="para">
    This class provides an object oriented interface into the fileinfo
    functions.
   </p>
  </div>


  <div class="section" id="finfo.synopsis">
   <h2 class="title">Class synopsis</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">finfo</strong>
     </span>
     {</div>

    
    <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="finfo.construct.html" class="methodname">__construct</a></span>
    ([ <span class="methodparam"><span class="type">int</span> <code class="parameter">$options</code><span class="initializer"> = FILEINFO_NONE</span></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$magic_file</code><span class="initializer"> = <strong><code>NULL</code></strong></span></span>
  ]] )</div>

    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span> <span class="methodname"><a href="finfo.buffer.html" class="methodname">buffer</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$string</code><span class="initializer"> = <strong><code>NULL</code></strong></span></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$options</code><span class="initializer"> = FILEINFO_NONE</span></span>
   [, <span class="methodparam"><span class="type">resource</span> <code class="parameter">$context</code><span class="initializer"> = <strong><code>NULL</code></strong></span></span>
  ]] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span> <span class="methodname"><a href="finfo.file.html" class="methodname">file</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$file_name</code><span class="initializer"> = <strong><code>NULL</code></strong></span></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$options</code><span class="initializer"> = FILEINFO_NONE</span></span>
   [, <span class="methodparam"><span class="type">resource</span> <code class="parameter">$context</code><span class="initializer"> = <strong><code>NULL</code></strong></span></span>
  ]] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span> <span class="methodname"><a href="finfo.set-flags.html" class="methodname">set_flags</a></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$options</code></span>
   )</div>

   }</div>


  </div>

 </div>

 





























<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="finfo.buffer.html">finfo::buffer</a> — Alias of finfo_buffer()</li><li><a href="finfo.construct.html">finfo::__construct</a> — Alias of finfo_open</li><li><a href="finfo.file.html">finfo::file</a> — Alias of finfo_file()</li><li><a href="finfo.set-flags.html">finfo::set_flags</a> — Alias of finfo_set_flags()</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.mime-content-type.html">mime_content_type</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="finfo.buffer.html">finfo::buffer</a></div>
 <div class="up"><a href="book.fileinfo.html">Fileinfo</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>