We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0678da2 commit 8bf591bCopy full SHA for 8bf591b
1 file changed
user_guide_src/source/incoming/incomingrequest/021.php
@@ -7,8 +7,8 @@
7
echo $uri->getUserInfo(); // snoopy:password
8
echo $uri->getHost(); // example.com
9
echo $uri->getPort(); // 88
10
-echo $uri->getPath(); // /path/to/page
+echo $uri->getPath(); // path/to/page
11
echo $uri->getQuery(); // foo=bar&bar=baz
12
-echo $uri->getSegments(); // ['path', 'to', 'page']
13
-echo $uri->getSegment(1); // 'path'
+print_r($uri->getSegments()); // Array ( [0] => path [1] => to [2] => page )
+echo $uri->getSegment(1); // path
14
echo $uri->getTotalSegments(); // 3
0 commit comments