Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 14258

php-manual-en-7.2.11-1.mga7.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Predefined Constants</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="url.resources.html">Resource Types</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="ref.url.html">URL Functions</a></div>
 <div class="up"><a href="book.url.html">URLs</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="url.constants" class="appendix">
 <h1>Predefined Constants</h1>

 <p class="simpara">
The constants below are defined by this extension, and
will only be available when the extension has either
been compiled into PHP or dynamically loaded at runtime.
</p>
 <p class="para">
  The following constants are meant to be used with
  <span class="function"><a href="function.parse-url.html" class="function">parse_url()</a></span> and are available since PHP 5.1.2.
 </p>
 <dl>

  
   <dt id="constant.php-url-scheme">
    <strong><code>PHP_URL_SCHEME</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.php-url-host">
    <strong><code>PHP_URL_HOST</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
    Outputs the hostname of the URL parsed.
    </span>
   </dd>

  
  
   <dt id="constant.php-url-port">
    <strong><code>PHP_URL_PORT</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Outputs the port of the URL parsed.
    </span>
   </dd>

  
  
   <dt id="constant.php-url-user">
    <strong><code>PHP_URL_USER</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Outputs the user of the URL parsed.
    </span>
   </dd>

  
  
   <dt id="constant.php-url-pass">
    <strong><code>PHP_URL_PASS</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Outputs the password of the URL parsed.
    </span>
   </dd>

  
  
   <dt id="constant.php-url-path">
    <strong><code>PHP_URL_PATH</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Outputs the path of the URL parsed.
    </span>
   </dd>

  
  
   <dt id="constant.php-url-query">
    <strong><code>PHP_URL_QUERY</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Outputs the query string of the URL parsed.
    </span>
   </dd>

  
  
   <dt id="constant.php-url-fragment">
    <strong><code>PHP_URL_FRAGMENT</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Outputs the fragment (string after the hashmark #) of the URL parsed.
    </span>
   </dd>

  
 </dl>

 <p class="para">
   The following constants are meant to be used with
  <span class="function"><a href="function.http-build-query.html" class="function">http_build_query()</a></span>.
 </p>
 <dl>

  
   <dt id="constant.php-query-rfc1738">
    <strong><code>PHP_QUERY_RFC1738</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Encoding is performed per
       <a href="http://www.faqs.org/rfcs/rfc1738" class="link external">&raquo;&nbsp;RFC 1738</a> and the
       <em>application/x-www-form-urlencoded</em> media type, which
       implies that spaces are encoded as plus (<em>+</em>) signs.
    </span>
   </dd>

  
  
   <dt id="constant.php-query-rfc3986">
    <strong><code>PHP_QUERY_RFC3986</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
      Encoding is performed according to <a href="http://www.faqs.org/rfcs/rfc3986" class="link external">&raquo;&nbsp;RFC 3986</a>,
      and spaces will be percent encoded (<em>%20</em>).
    </span>
   </dd>

  
 </dl>

</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="url.resources.html">Resource Types</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="ref.url.html">URL Functions</a></div>
 <div class="up"><a href="book.url.html">URLs</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>