<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.uri-whatwg-url.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'uri-whatwg-url.getfragment.php',
    1 => 'Uri\\WhatWg\\Url::getFragment',
    2 => 'Retrieve the fragment component',
  ),
  'up' => 
  array (
    0 => 'class.uri-whatwg-url.php',
    1 => 'Uri\\WhatWg\\Url',
  ),
  'prev' => 
  array (
    0 => 'uri-whatwg-url.getasciihost.php',
    1 => 'Uri\\WhatWg\\Url::getAsciiHost',
  ),
  'next' => 
  array (
    0 => 'uri-whatwg-url.getpassword.php',
    1 => 'Uri\\WhatWg\\Url::getPassword',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/uri/uri/whatwg/url/getfragment.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="uri-whatwg-url.getfragment" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Uri\WhatWg\Url::getFragment</h1>
  <p class="verinfo">(PHP 8 &gt;= 8.5.0)</p><p class="refpurpose"><span class="refname">Uri\WhatWg\Url::getFragment</span> &mdash; <span class="dc-title">Retrieve the fragment component</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-uri-whatwg-url.getfragment-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Uri\WhatWg\Url::getFragment</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.string.php" class="type string">string</a></span></span></div>

  <p class="simpara">
   Retrieves the fragment component.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-uri-whatwg-url.getfragment-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <p class="para">Questa funzione non contiene parametri.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-uri-whatwg-url.getfragment-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="simpara">
   Returns the fragment component as a <span class="type"><a href="language.types.string.php" class="type string">string</a></span> if the fragment component exists, <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> is returned otherwise.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-uri-whatwg-url.getfragment-examples">
  <h3 class="title">Esempi</h3>
  <div class="example" id="uri-whatwg-url.getfragment.example.basic">
   <p><strong>Example #1 <span class="methodname"><strong>Uri\WhatWg\Url::getFragment()</strong></span> basic example</strong></p>
   <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$url </span><span style="color: #007700">= new </span><span style="color: #0000BB">\Uri\WhatWg\Url</span><span style="color: #007700">(</span><span style="color: #DD0000">"https://example.com#foo"</span><span style="color: #007700">);<br /><br />echo </span><span style="color: #0000BB">$url</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getFragment</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>Il precedente esempio visualizzerà:</p></div>
   <div class="example-contents screen">
<div class="annotation-interactive examplescode"><pre class="examplescode">foo</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-uri-whatwg-url.getfragment-seealso">
  <h3 class="title">Vedere anche:</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="uri-whatwg-url.withfragment.php" class="methodname" rel="rdfs-seeAlso">Uri\WhatWg\Url::withFragment()</a> - Modify the fragment component</span></li>
   <li><span class="methodname"><a href="uri-rfc3986-uri.getrawfragment.php" class="methodname" rel="rdfs-seeAlso">Uri\Rfc3986\Uri::getRawFragment()</a> - Retrieve the raw fragment component</span></li>
   <li><span class="methodname"><a href="uri-rfc3986-uri.getfragment.php" class="methodname" rel="rdfs-seeAlso">Uri\Rfc3986\Uri::getFragment()</a> - Retrieve the normalized fragment component</span></li>
  </ul>
 </div>

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