<th class="field-name">Return type:</th><td class="field-body">int</td>
</tr>
</tbody>
</table>
<p>This method is identical to <code class="docutils literal"><span class="pre">total_segments()</span></code>, except that it returns
the total number of segments in your re-routed URI in the event you are
using CodeIgniter’s <a class="reference internal" href="../general/routing.html"><span class="doc">URI Routing</span></a> feature.</p>
</dd></dl>

<dl class="method">
<dt id="CI_URI::segment_array">
<code cl