Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions reference/uri/uri/rfc3986/uri/getfragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,18 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com#foo=bar");

echo $uri->getFragment();
$uri = new \Uri\Rfc3986\Uri('HTTPS://p%68p:elephp%61nt@WWW.PHP.NET:443/manual/ch%61nge.php?p%61ge=en/book.uri.php#%62ook.uri');

var_dump($uri->getFragment());

?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
foo=bar
string(8) "book.uri"
]]>
</screen>
</example>
Expand Down
8 changes: 5 additions & 3 deletions reference/uri/uri/rfc3986/uri/gethost.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,18 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com");

echo $uri->getHost();
$uri = new \Uri\Rfc3986\Uri('HTTPS://p%68p:elephp%61nt@WWW.PHP.NET:443/manual/ch%61nge.php?p%61ge=en/book.uri.php#%62ook.uri');

var_dump($uri->getHost());

?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
example.com
string(11) "www.php.net"
]]>
</screen>
</example>
Expand Down
8 changes: 5 additions & 3 deletions reference/uri/uri/rfc3986/uri/getpassword.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,18 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://user:password@example.com");

echo $uri->getPassword();
$uri = new \Uri\Rfc3986\Uri('HTTPS://p%68p:elephp%61nt@WWW.PHP.NET:443/manual/ch%61nge.php?p%61ge=en/book.uri.php#%62ook.uri');

var_dump($uri->getPassword());

?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
password
string(9) "elephpant"
]]>
</screen>
</example>
Expand Down
8 changes: 5 additions & 3 deletions reference/uri/uri/rfc3986/uri/getpath.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,18 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com/foo/bar");

echo $uri->getPath();
$uri = new \Uri\Rfc3986\Uri('HTTPS://p%68p:elephp%61nt@WWW.PHP.NET:443/manual/ch%61nge.php?p%61ge=en/book.uri.php#%62ook.uri');

var_dump($uri->getPath());

?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
/foo/bar
string(18) "/manual/change.php"
]]>
</screen>
</example>
Expand Down
8 changes: 5 additions & 3 deletions reference/uri/uri/rfc3986/uri/getport.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,18 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com:443");

echo $uri->getPort();
$uri = new \Uri\Rfc3986\Uri('HTTPS://p%68p:elephp%61nt@WWW.PHP.NET:443/manual/ch%61nge.php?p%61ge=en/book.uri.php#%62ook.uri');

var_dump($uri->getPort());

?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
443
int(443)
]]>
</screen>
</example>
Expand Down
8 changes: 5 additions & 3 deletions reference/uri/uri/rfc3986/uri/getquery.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,18 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com?foo=bar");

echo $uri->getQuery();
$uri = new \Uri\Rfc3986\Uri('HTTPS://p%68p:elephp%61nt@WWW.PHP.NET:443/manual/ch%61nge.php?p%61ge=en/book.uri.php#%62ook.uri');

var_dump($uri->getQuery());

?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
foo=bar
string(20) "page=en/book.uri.php"
]]>
</screen>
</example>
Expand Down
8 changes: 5 additions & 3 deletions reference/uri/uri/rfc3986/uri/getrawfragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,18 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com#foo=bar");

echo $uri->getRawFragment();
$uri = new \Uri\Rfc3986\Uri('HTTPS://p%68p:elephp%61nt@WWW.PHP.NET:443/manual/ch%61nge.php?p%61ge=en/book.uri.php#%62ook.uri');

var_dump($uri->getRawFragment());

?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
foo=bar
string(10) "%62ook.uri"
]]>
</screen>
</example>
Expand Down
8 changes: 5 additions & 3 deletions reference/uri/uri/rfc3986/uri/getrawhost.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,18 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com");

echo $uri->getRawHost();
$uri = new \Uri\Rfc3986\Uri('HTTPS://p%68p:elephp%61nt@WWW.PHP.NET:443/manual/ch%61nge.php?p%61ge=en/book.uri.php#%62ook.uri');

var_dump($uri->getRawHost());

?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
example.com
string(11) "WWW.PHP.NET"
]]>
</screen>
</example>
Expand Down
8 changes: 5 additions & 3 deletions reference/uri/uri/rfc3986/uri/getrawpassword.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,18 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://user:password@example.com");

echo $uri->getRawPassword();
$uri = new \Uri\Rfc3986\Uri('HTTPS://p%68p:elephp%61nt@WWW.PHP.NET:443/manual/ch%61nge.php?p%61ge=en/book.uri.php#%62ook.uri');

var_dump($uri->getRawPassword());

?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
password
string(11) "elephp%61nt"
]]>
</screen>
</example>
Expand Down
8 changes: 5 additions & 3 deletions reference/uri/uri/rfc3986/uri/getrawpath.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,18 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com/foo/bar");

echo $uri->getRawPath();
$uri = new \Uri\Rfc3986\Uri('HTTPS://p%68p:elephp%61nt@WWW.PHP.NET:443/manual/ch%61nge.php?p%61ge=en/book.uri.php#%62ook.uri');

var_dump($uri->getRawPath());

?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
/foo/bar
string(20) "/manual/ch%61nge.php"
]]>
</screen>
</example>
Expand Down
8 changes: 5 additions & 3 deletions reference/uri/uri/rfc3986/uri/getrawquery.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,18 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com?foo=bar");

echo $uri->getRawQuery();
$uri = new \Uri\Rfc3986\Uri('HTTPS://p%68p:elephp%61nt@WWW.PHP.NET:443/manual/ch%61nge.php?p%61ge=en/book.uri.php#%62ook.uri');

var_dump($uri->getRawQuery());

?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
foo=bar
string(22) "p%61ge=en/book.uri.php"
]]>
</screen>
</example>
Expand Down
8 changes: 5 additions & 3 deletions reference/uri/uri/rfc3986/uri/getrawscheme.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,18 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com");

echo $uri->getRawScheme();
$uri = new \Uri\Rfc3986\Uri('HTTPS://p%68p:elephp%61nt@WWW.PHP.NET:443/manual/ch%61nge.php?p%61ge=en/book.uri.php#%62ook.uri');

var_dump($uri->getRawScheme());

?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
https
string(5) "HTTPS"
]]>
</screen>
</example>
Expand Down
8 changes: 5 additions & 3 deletions reference/uri/uri/rfc3986/uri/getrawuserinfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,18 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://user:password@example.com");

echo $uri->getRawUserInfo();
$uri = new \Uri\Rfc3986\Uri('HTTPS://p%68p:elephp%61nt@WWW.PHP.NET:443/manual/ch%61nge.php?p%61ge=en/book.uri.php#%62ook.uri');

var_dump($uri->getRawUserinfo());

?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
user:password
string(17) "p%68p:elephp%61nt"
]]>
</screen>
</example>
Expand Down
8 changes: 5 additions & 3 deletions reference/uri/uri/rfc3986/uri/getrawusername.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,18 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://user:password@example.com");

echo $uri->getRawUsername();
$uri = new \Uri\Rfc3986\Uri('HTTPS://p%68p:elephp%61nt@WWW.PHP.NET:443/manual/ch%61nge.php?p%61ge=en/book.uri.php#%62ook.uri');

var_dump($uri->getRawUsername());

?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
user
string(5) "p%68p"
]]>
</screen>
</example>
Expand Down
8 changes: 5 additions & 3 deletions reference/uri/uri/rfc3986/uri/getscheme.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,18 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com");

echo $uri->getScheme();
$uri = new \Uri\Rfc3986\Uri('HTTPS://p%68p:elephp%61nt@WWW.PHP.NET:443/manual/ch%61nge.php?p%61ge=en/book.uri.php#%62ook.uri');

var_dump($uri->getScheme());

?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
https
string(5) "https"
]]>
</screen>
</example>
Expand Down
8 changes: 5 additions & 3 deletions reference/uri/uri/rfc3986/uri/getuserinfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,18 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://user:password@example.com");

echo $uri->getUserInfo();
$uri = new \Uri\Rfc3986\Uri('HTTPS://p%68p:elephp%61nt@WWW.PHP.NET:443/manual/ch%61nge.php?p%61ge=en/book.uri.php#%62ook.uri');

var_dump($uri->getUserinfo());

?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
user:password
string(13) "php:elephpant"
]]>
</screen>
</example>
Expand Down
8 changes: 5 additions & 3 deletions reference/uri/uri/rfc3986/uri/getusername.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,18 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://user:password@example.com");

echo $uri->getUsername();
$uri = new \Uri\Rfc3986\Uri('HTTPS://p%68p:elephp%61nt@WWW.PHP.NET:443/manual/ch%61nge.php?p%61ge=en/book.uri.php#%62ook.uri');

var_dump($uri->getUsername());

?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
user
string(3) "php"
]]>
</screen>
</example>
Expand Down
8 changes: 5 additions & 3 deletions reference/uri/uri/rfc3986/uri/torawstring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,18 @@
<programlisting role="php">
<![CDATA[
<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com/foo/bar?baz");

echo $uri->toRawString();
$uri = new \Uri\Rfc3986\Uri('HTTPS://p%68p:elephp%61nt@WWW.PHP.NET:443/manual/ch%61nge.php?p%61ge=en/book.uri.php#%62ook.uri');

var_dump($uri->toRawString());

?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
https://example.com/foo/bar?baz
string(95) "HTTPS://p%68p:elephp%61nt@WWW.PHP.NET:443/manual/ch%61nge.php?p%61ge=en/book.uri.php#%62ook.uri"
]]>
</screen>
</example>
Expand Down
Loading