<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.network.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.net-get-interfaces.php',
    1 => 'net_get_interfaces',
    2 => 'Get network interfaces',
  ),
  'up' => 
  array (
    0 => 'ref.network.php',
    1 => 'Network Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.long2ip.php',
    1 => 'long2ip',
  ),
  'next' => 
  array (
    0 => 'function.openlog.php',
    1 => 'openlog',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/network/functions/net-get-interfaces.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.net-get-interfaces" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">net_get_interfaces</h1>
  <p class="verinfo">(PHP 7 &gt;= 7.3, PHP 8)</p><p class="refpurpose"><span class="refname">net_get_interfaces</span> &mdash; <span class="dc-title">Get network interfaces</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.net-get-interfaces-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>net_get_interfaces</strong></span>(): <span class="type"><span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Returns an enumeration of network interfaces (adapters) on the local machine.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.net-get-interfaces-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <p class="para">Questa funzione non contiene parametri.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.net-get-interfaces-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="para">
   Returns an associative <span class="type"><a href="language.types.array.php" class="type array">array</a></span> where the key is the name of the interface and
   the value an associative array of interface attributes,
    o <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> in caso di fallimento.
  </p>
  <p class="para">
   Each interface associative array contains:
   <table class="doctable table">
    <caption><strong>Interface attributes</strong></caption>
    
     <thead>
      <tr>
       <th>Nome</th>
       <th>Descrizione</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>description</td>
       <td>
        Optional string value for description of the interface.
        Windows only.
       </td>
      </tr>

      <tr>
       <td>mac</td>
       <td>
        Optional string value for MAC address of the interface.
        Windows only.
       </td>
      </tr>

      <tr>
       <td>mtu</td>
       <td>
        Integer value for Maximum transmission unit (MTU) of the interface.
        Windows only.
       </td>
      </tr>

      <tr>
       <td>unicast</td>
       <td>
        Array of associative arrays, see Unicast attributes below.
       </td>
      </tr>

      <tr>
       <td>up</td>
       <td>
        Boolean status (on/off) for interface.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
  <p class="para">
   <table class="doctable table">
    <caption><strong>Unicast attributes</strong></caption>
    
     <thead>
      <tr>
       <th>Nome</th>
       <th>Descrizione</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>flags</td>
       <td>
        Integer value.
       </td>
      </tr>

      <tr>
       <td>family</td>
       <td>
        Integer value.
       </td>
      </tr>

      <tr>
       <td>address</td>
       <td>
        String value for address in either IPv4 or IPv6.
       </td>
      </tr>

      <tr>
       <td>netmask</td>
       <td>
        String value for netmask in either IPv4 or IPv6.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.net-get-interfaces-errors">
  <h3 class="title">Errori/Eccezioni</h3>
  <p class="para">
   Emits an <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> on failure to get interface information.
  </p>
 </div>


</div><?php manual_footer($setup); ?>