Skip to content

Commit 505bd2b

Browse files
committed
docs: add note for URI::getSegment()
1 parent e2e255b commit 505bd2b

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
@@ -213,6 +213,10 @@ You can also set a different default value for a particular segment by using the
213213

214214
.. literalinclude:: uri/024.php
215215

216+
.. note:: You can get the last +1 segment. When you try to get the last +2 or
217+
more segment, an exception will be thrown by default. You could prevent
218+
throwing exceptions with the ``setSilent()`` method.
219+
216220
You can get a count of the total segments:
217221

218222
.. literalinclude:: uri/025.php

0 commit comments

Comments
 (0)