Skip to content

Commit 4aa93c5

Browse files
authored
Merge pull request #7292 from kenjis/docs-add-note-URI-getSegment
docs: add note for URI::getSegment()
2 parents 4c69da2 + 505bd2b commit 4aa93c5

File tree

1 file changed

+4
-0
lines changed
  • user_guide_src/source/libraries

1 file changed

+4
-0
lines changed

user_guide_src/source/libraries/uri.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,10 @@ You can also set a different default value for a particular segment by using the
219219

220220
.. literalinclude:: uri/024.php
221221

222+
.. note:: You can get the last +1 segment. When you try to get the last +2 or
223+
more segment, an exception will be thrown by default. You could prevent
224+
throwing exceptions with the ``setSilent()`` method.
225+
222226
You can get a count of the total segments:
223227

224228
.. literalinclude:: uri/025.php

0 commit comments

Comments
 (0)