<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/language.types.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'language.types.singleton.php',
    1 => 'Singleton types',
    2 => 'Singleton types',
  ),
  'up' => 
  array (
    0 => 'language.types.php',
    1 => 'T&uuml;rler',
  ),
  'prev' => 
  array (
    0 => 'language.types.relative-class-types.php',
    1 => 'parent, self, static',
  ),
  'next' => 
  array (
    0 => 'language.types.iterable.php',
    1 => 'iterable',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'language/types/singleton.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="language.types.singleton" class="sect1">
 <h2 class="title">Singleton types</h2>

 <p class="para">
  Singleton types are those which allow only one value.
  PHP has support for two singleton types:
  <span class="type"><a href="language.types.singleton.php" class="type false">false</a></span> as of PHP 8.0.0 and <span class="type"><a href="language.types.singleton.php" class="type true">true</a></span>
  as of PHP 8.2.0.
 </p>

 <div class="warning"><strong class="warning">Uyarı</strong>
  <p class="simpara">
   Prior to PHP 8.2.0 the <span class="type"><a href="language.types.singleton.php" class="type false">false</a></span> type
   could only be used as part of a
   <a href="language.types.type-system.php#language.types.type-system.composite.union" class="link">union type</a>.
  </p>
 </div>

 <blockquote class="note"><p><strong class="note">Bilginize</strong>: 
  <span class="simpara">
   It is not possible to define custom singleton types. Consider using
   <a href="language.types.enumerations.php" class="link">enumerations</a> instead.
  </span>
 </p></blockquote>

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