Get second segment from url
<p>How to get the second segment in URL without slashes ?
For example I have a URL`s like this </p>

<pre><code>http://foobar/first/second
</code></pre>

<p>How to get the value where "first" stands ?</p>
