<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.mysqli.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'mysqli.init.php',
    1 => 'mysqli::init',
    2 => 'Initialisiert MySQLi und liefert ein Objekt zur Verwendung mit mysqli_real_connect()',
  ),
  'up' => 
  array (
    0 => 'class.mysqli.php',
    1 => 'mysqli',
  ),
  'prev' => 
  array (
    0 => 'mysqli.info.php',
    1 => 'mysqli::$info',
  ),
  'next' => 
  array (
    0 => 'mysqli.insert-id.php',
    1 => 'mysqli::$insert_id',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/mysqli/mysqli/init.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="mysqli.init" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mysqli::init</h1>
  <h1 class="refname">mysqli_init</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">mysqli::init</span> -- <span class="refname">mysqli_init</span> &mdash; <span class="dc-title">Initialisiert MySQLi und liefert ein Objekt zur Verwendung mit mysqli_real_connect()</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mysqli.init-description">
  <h3 class="title">Beschreibung</h3>
  <p class="para">Objektorientierter Stil</p>
  <div class="methodsynopsis dc-description">
   <span class="attribute"><a href="class.deprecated.php">#[\Deprecated]</a> </span><br>
   <span class="modifier">public</span> <span class="methodname"><strong>mysqli::init</strong></span>(): <span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></span></div>

  <p class="para rdfs-comment">Prozeduraler Stil</p>
  <div class="methodsynopsis dc-description"><span class="methodname"><strong>mysqli_init</strong></span>(): <span class="type"><span class="type"><a href="class.mysqli.php" class="type mysqli">mysqli</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Erstellt oder initialisiert ein MySQL-Objekt, das für
   <span class="function"><a href="mysqli.options.php" class="function">mysqli_options()</a></span> und
   <span class="function"><a href="mysqli.real-connect.php" class="function">mysqli_real_connect()</a></span> geeignet ist.
  </p>
  <blockquote class="note"><p><strong class="note">Hinweis</strong>: 
   <p class="para">
    Abgesehen von den Funktionen <span class="function"><a href="mysqli.options.php" class="function">mysqli_options()</a></span> und
    <span class="function"><a href="mysqli.ssl-set.php" class="function">mysqli_ssl_set()</a></span> schlagen alle nachfolgenden Aufrufe
    einer mysqli-Funktion solange fehl, bis
    <span class="function"><a href="mysqli.real-connect.php" class="function">mysqli_real_connect()</a></span> aufgerufen wurde.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 parameters" id="refsect1-mysqli.init-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">Diese Funktion besitzt keine Parameter.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mysqli.init-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   <span class="methodname"><strong>mysqli::init()</strong></span> gibt bei Erfolg <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> zurück.
   Bei einem Fehler wird <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> zurückgegeben. <span class="function"><strong>mysqli_init()</strong></span> gibt bei
   Erfolg ein Objekt zurück. Bei einem Fehler wird <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> zurückgegeben.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-mysqli.init-changelog">
  <h3 class="title">Changelog</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Beschreibung</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.1.0</td>
      <td>
       Die objektorientierte Methode <span class="methodname"><strong>mysqli::init()</strong></span> ist
       veraltet. Anstelle von <span class="methodname"><strong>parent::init()</strong></span> sollte
       <span class="methodname"><strong>parent::__construct()</strong></span> verwendet werden.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-mysqli.init-examples">
  <h3 class="title">Beispiele</h3>
  <p class="para">
   Siehe <span class="function"><a href="mysqli.real-connect.php" class="function">mysqli_real_connect()</a></span>.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-mysqli.init-seealso">
  <h3 class="title">Siehe auch</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="mysqli.options.php" class="function" rel="rdfs-seeAlso">mysqli_options()</a> - Setzt Optionen</span></li>
    <li><span class="function"><a href="mysqli.close.php" class="function" rel="rdfs-seeAlso">mysqli_close()</a> - Schlie&szlig;t die zuvor ge&ouml;ffnete Datenbankverbindung</span></li>
    <li><span class="function"><a href="mysqli.real-connect.php" class="function" rel="rdfs-seeAlso">mysqli_real_connect()</a> - Baut eine Verbindung zu einem MySQL-Server auf</span></li>
    <li><span class="function"><a href="function.mysqli-connect.php" class="function" rel="rdfs-seeAlso">mysqli_connect()</a> - Alias von mysqli::__construct</span></li>
   </ul>
  </p>
 </div>


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