<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.uri-rfc3986-uri.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'uri-rfc3986-uri.getrawusername.php',
    1 => 'Uri\\Rfc3986\\Uri::getRawUsername',
    2 => 'Retrieve the raw username',
  ),
  'up' => 
  array (
    0 => 'class.uri-rfc3986-uri.php',
    1 => 'Uri\\Rfc3986\\Uri',
  ),
  'prev' => 
  array (
    0 => 'uri-rfc3986-uri.getrawuserinfo.php',
    1 => 'Uri\\Rfc3986\\Uri::getRawUserInfo',
  ),
  'next' => 
  array (
    0 => 'uri-rfc3986-uri.getscheme.php',
    1 => 'Uri\\Rfc3986\\Uri::getScheme',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/uri/uri/rfc3986/uri/getrawusername.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="uri-rfc3986-uri.getrawusername" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Uri\Rfc3986\Uri::getRawUsername</h1>
  <p class="verinfo">(PHP 8 &gt;= 8.5.0)</p><p class="refpurpose"><span class="refname">Uri\Rfc3986\Uri::getRawUsername</span> &mdash; <span class="dc-title">Retrieve the raw username</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-uri-rfc3986-uri.getrawusername-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Uri\Rfc3986\Uri::getRawUsername</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 raw (non-normalized) username part (the text before the first <code class="literal">:</code> character)
   from userinfo component.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-uri-rfc3986-uri.getrawusername-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-uri-rfc3986-uri.getrawusername-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="simpara">
   Returns the raw (non-normalized) username as a <span class="type"><a href="language.types.string.php" class="type string">string</a></span> if the userinfo 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-rfc3986-uri.getrawusername-examples">
  <h3 class="title">示例</h3>
  <div class="example" id="uri-rfc3986-uri.getrawusername.example.basic">
   <p><strong>示例 #1 <span class="methodname"><strong>Uri\Rfc3986\Uri::getRawUsername()</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 />$uri </span><span style="color: #007700">= new </span><span style="color: #0000BB">\Uri\Rfc3986\Uri</span><span style="color: #007700">(</span><span style="color: #DD0000">"https://user:password@example.com"</span><span style="color: #007700">);<br /><br />echo </span><span style="color: #0000BB">$uri</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getRawUsername</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>以上示例会输出：</p></div>
   <div class="example-contents screen">
<div class="annotation-interactive examplescode"><pre class="examplescode">user</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-uri-rfc3986-uri.getrawusername-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="uri-rfc3986-uri.getrawuserinfo.php" class="methodname" rel="rdfs-seeAlso">Uri\Rfc3986\Uri::getRawUserInfo()</a> - Retrieve the raw userinfo component</span></li>
   <li><span class="methodname"><a href="uri-rfc3986-uri.getuserinfo.php" class="methodname" rel="rdfs-seeAlso">Uri\Rfc3986\Uri::getUserInfo()</a> - Retrieve the normalized userinfo component</span></li>
   <li><span class="methodname"><a href="uri-rfc3986-uri.withuserinfo.php" class="methodname" rel="rdfs-seeAlso">Uri\Rfc3986\Uri::withUserInfo()</a> - Modify the userinfo component</span></li>
   <li><span class="methodname"><a href="uri-whatwg-url.getusername.php" class="methodname" rel="rdfs-seeAlso">Uri\WhatWg\Url::getUsername()</a> - Retrieve the username component</span></li>
  </ul>
 </div>

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